Skip to content

Commit 826bf36

Browse files
committed
rivkode fix climbing stars
1 parent e1ef62a commit 826bf36

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

โ€Žclimbing-stairs/rivkode.javaโ€Ž

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@
44
๋ฉ”๋ชจ์ด์ œ์ด์…˜๊ณผ dp๋ฅผ ์‚ฌ์šฉํ•˜๋ฉด ํ’€ ์ˆ˜ ์žˆ์„ ๊ฒƒ ๊ฐ™์€๋ฐ
55
dp ์•„๋‹ˆ๋„ค
66
7-
์ ํ™”์‹
8-
9-
count(n) = count(n-1) +
10-
117
๋งŒ์•ฝ 5๋ฅผ ๋งŒ๋“œ๋ ค๋ฉด
128
3์„ ๋งŒ๋“œ๋Š” ๊ฒฝ์šฐ์˜ ์ˆ˜์™€ 2๋ฅผ ๋งŒ๋“œ๋Š” ๊ฒฝ์šฐ์˜ ์ˆ˜๋ฅผ ๊ณฑํ•˜๋ฉด ๋˜๋Š”๊ฒƒ ์•„๋‹Œ๊ฐ€ ?
139
@@ -61,6 +57,8 @@
6157
count(3) = coun(1) + count(2)
6258
count(4) = count(3) + count(2)
6359
60+
์ ํ™”์‹
61+
6462
count(n) = count(n-1) + count(n-2)
6563
6664
*/

0 commit comments

Comments
ย (0)