-
5 Simple Steps for Solving Any Recursive ProblemAlgorithm 2021. 5. 13. 12:59
1) What's the simplest possbile input? ex) x = 0
2) Play around with examples and visualize !
3) Relate hard cases to simpler cases
4) Generalize the pattern
5) Write code by combining recursibe
- pattern with the base code
#출처
'Algorithm' 카테고리의 다른 글
[Python] List Comprehension to Dict (0) 2021.08.21 #백준 1463번 #파이썬 #알고리즘 #문이과통합중 (0) 2021.05.12 #백준 2579번 #파이썬 #알고리즘 #문이과통합중 (0) 2021.05.11 #백준 1149번 #파이썬 #문제풀이 (0) 2021.05.10 #백준 1904번 #파이썬 #문제풀이 (1) 2021.05.07