일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- 자료구조
- Github
- SQLite와 Realm 차이점
- 안드로이드 파일
- 안드로이드 AdapterView
- android support
- 자바 컬렉션
- 안드로이드 DBMS
- BFS
- 깊이우선탐색
- android adapterview
- 백준
- 백준 알고리즘
- application not responding
- java
- 알고리즘
- anr
- 소수 알고리즘
- 소수
- support fragment
- 안드로이드
- db
- support 라이브러리
- 컬렉션
- 안드로이드 ANR
- DFS
- 액티비티 ANR
- oracle
- 너비우선탐색
- android fragment
Archives
- Today
- Total
목록팩토리얼 알고리즘 (1)
밍의 기록들😉
[다이나믹] 팩토리얼 구하기
팩토리얼N! = 1 x 2 x ... x NN! = N x (N-1)!f(n) = n x f(n-1)f(0) = 1귀납적 계산법 코드public int getFactorial(int n){ if(n==0){ return 1; } else return n * getFactorial(n-1); } 순차적 계산법 코드Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int ans = 1; for(int i=2; i
자료구조, 알고리즘/기본다지기
2018. 8. 20. 15:49