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 | 31 |
Tags
- Special String Again
- 피보나치 함수
- [sqld]자격증합격
- 백준
- 머신러닝
- 야근지수
- 격파르타 장점
- DFS: Connected Cell in a Grid
- BFS: Shortest Reach in a Graph
- 알고리즘
- Find the nearest clone
- python
- Common Child
- 해커랭크
- 격파르타 합격후기
- 격파르타 후기
- 구슬탈출2
- 파이썬
- Algorithm
- hackerrank
- 프로그래머스
- Interview Preparation Kit
- Recursion: Davis' Staircase
- 매칭점수
- programmers
- Reverse Shuffle Merge
- 코딩테스트
- candies
- Max Array Sum
- Roads and Libraries
Archives
- Today
- Total
목록Recursion: Davis' Staircase (1)
Archive

https://www.hackerrank.com/challenges/ctci-recursive-staircase/problem Recursion: Davis' Staircase | HackerRank Find the number of ways to get from the bottom of a staircase to the top if you can jump 1, 2, or 3 stairs at a time. www.hackerrank.com 풀이 계단을 1칸, 2칸, 3칸 올라갈 수 있을 때, n을 입력으로 받았을 때 가능한 모든 경우의 수 찾는 문제. 재귀함수로 풀지 않고, memoization으로 풀 수 있음. bottom-up으로 풀었고, 식은 next_step = next_step-1 + next..
공부/Algorithm
2020. 9. 1. 22:02