일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
31 |
Tags
- 안드로이드 DBMS
- 안드로이드 ANR
- android support
- 안드로이드 AdapterView
- 안드로이드 파일
- Github
- BFS
- oracle
- DFS
- db
- 소수
- 자료구조
- 자바 컬렉션
- anr
- 알고리즘
- SQLite와 Realm 차이점
- 깊이우선탐색
- application not responding
- android fragment
- 너비우선탐색
- support fragment
- support 라이브러리
- android adapterview
- 컬렉션
- 액티비티 ANR
- java
- 백준 알고리즘
- 소수 알고리즘
- 안드로이드
- 백준
Archives
- Today
- Total
밍의 기록들😉
[수학] 피보나치 수열 구하기
피보나치 수열F0 = 0F1 = 1Fn = Fn-1 + Fn-2 (n>= 2)코드 public class Fibonacci { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int n = scan.nextInt(); int[] fibonacci = new int[n+2]; fibonacci[0] = 0; fibonacci[1] = 1; for(int i=2; i
자료구조, 알고리즘/기본다지기
2018. 8. 14. 23:31
[수학] 최대공약수(GCD)와 최소공배수(LCM) 구하기
최대공약수(GCD)두 수의 공통된 약수 중에서 가장 큰 정수최대공약수가 1인 두 수는 서로소코드 private int gcd(int a, int b) { if(b==0){ return a; } else{ return gcd(b, a%b); } } 유클리드 호제법a를 b로 나눈 나머지 rGCD(a,b) = GCD(b,r)r = 0 일 때 b가 최대공약수재귀함수 사용하여 구현한 코드 private int gcd(int a, int b) { if(b==0){ return a; } else{ return gcd(b, a%b); } }재귀함수 사용하지 않고 구현한 코드 private int gcd(int a, int b) { while(b !=0){ int r = a%b; a = b; b = r; } return..
자료구조, 알고리즘/기본다지기
2018. 8. 10. 19:44