Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- 텐서플로
- RNN
- graph
- C언어
- NumPy
- Sort
- GRU
- 파이썬
- 딥러닝
- 알고리즘
- codingthematrix
- hadoop2
- collections
- 주식분석
- 하둡2
- HelloWorld
- tensorflow
- effective python
- LSTM
- 그래프이론
- hive
- 코딩더매트릭스
- scrapy
- python
- 하이브
- recursion
- C
- 선형대수
- Java
- yarn
Archives
- Today
- Total
목록iteration (1)
EXCELSIOR
Recursion의 개념과 기본 예제들 - 2
1. 문자열의 길이 계산 1) Base Case : 문자열 값이 null 인 경우 → return 0; 2) Recursive Case : 첫번째 문자를 제외한 길이 + 1을 return 한다. public class RecursionTest { public static void main(String[] args) { System.out.println(length("test")); } public static int length(String str){ if(str.equals("")) return 0; else return 1+length(str.substring(1)); // 차례대로 est -> st -> t return } } 2. 문자열을 뒤집어 프린트 public class RecursionTe..
Algorithms
2016. 11. 10. 21:54