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