목록전체 글 (18)
Kelly's journey to a coding master
https://www.ncbi.nlm.nih.gov/pmc/articles/PMC6800811/ Bayesian additive regression trees and the General BART model Bayesian additive regression trees (BART) is a flexible prediction model/machine learning approach that has gained widespread popularity in recent years. As BART becomes more mainstream, there is an increased need for a paper that walks readers through ... www.ncbi.nlm.nih.gov 학부연구..
https://www.acmicpc.net/problem/1956 1956번: 운동 첫째 줄에 V와 E가 빈칸을 사이에 두고 주어진다. (2 ≤ V ≤ 400, 0 ≤ E ≤ V(V-1)) 다음 E개의 줄에는 각각 세 개의 정수 a, b, c가 주어진다. a번 마을에서 b번 마을로 가는 거리가 c인 도로가 있다는 의 www.acmicpc.net 플로이드 알고리즘에서 그래프(D)의 대각선 요소(D[i][i])를 0으로 초기화시키지 않은 채(즉, 매우 큰 수로 둔 채) 3중 for문을 돌리면 이 대각선 요소에 저장되는 값은 무엇이 될까? 정답은 해당 지점(i)에서 다른 지점을 거쳐서 다시 해당 지점(i)으로 돌아오는 최소비용이 저장된다는 것이다. 강의에서 배운 알고리즘을 제대로 이해하고 코드를 작성한다고 생..
1. append() : 리스트의 마지막에 인자로 전달된 아이템을 추가 list = [1,2,3] list.append(4) print(list) #[1, 2, 3, 4] list.append([5,6]) print(list) #[1, 2, 3, 4, [5, 6]] 2. extend(): 인자로 전달된 iterable(list, tuple 등) 의 모든 아이템을 리스트에 추가 list = [1,2,3,4] list.extend([5,6]) print(list) #[1, 2, 3, 4, 5, 6] list.extend((7,8,9)) print(list) #[1, 2, 3, 4, 5, 6, 7, 8, 9]
https://developer.android.com/reference/android/graphics/drawable/AnimationDrawable AnimationDrawable | Android Developers developer.android.com Drawablae 객체를 연속적으로 정의해서 View 객체의 백그라운드로 사용함으로써 frame-by-frame 애니메이션을 만들 때 쓰이는 객체이다. 가장 간단하게 구현하는 방법은 XML 파일(res/drawable/ folder에 위치함)에 애니메이션을 정의하고 나서 View 객체의 백그라운드로 설정하는 것이다. 애니메이션을 실행할 때는 start() 를 호출하면 된다. // MainActivity.java import android.graphi..
https://www.geeksforgeeks.org/stringbuffer-class-in-java/ StringBuffer class in Java - GeeksforGeeks A Computer Science portal for geeks. It contains well written, well thought and well explained computer science and programming articles, quizzes and practice/competitive programming/company interview Questions. www.geeksforgeeks.org Mobile App Dev 자료를 공부하던 중 buffer 부분에서 StringBuffer라는 클래스를 사용한 것..
https://victorydntmd.tistory.com/300 [디자인패턴] 추상 팩토리 패턴 ( Abstract Factory Pattern ) 추상 팩토리 패턴 ( Abstract Factory Pattern )추상 팩토리 패턴이라는 이름만 봐서는 팩토리 메서드 패턴과 비슷해보이지만, 명확한 차이점이 있습니다. 팩토리 메서드 패턴조건에 따른 객체 생성을 victorydntmd.tistory.com 1) Factory Method https://bcp0109.tistory.com/367 Factory 패턴 (2/3) - Factory Method (팩토리 메서드) 패턴 1. Overview Fact..