Skip to content

Commit 55a43fc

Browse files
committed
solve: unique paths
1 parent 4b1c111 commit 55a43fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

โ€Žunique-paths/wogha95.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* (+ ํŒฉํ† ๋ฆฌ์–ผ์˜ ์ˆ˜๋Š” ๋งค์šฐ ๋น ๋ฅด๊ฒŒ ์ปค์ง€๋ฏ€๋กœ ์ค‘๊ฐ„ ๋‚˜๋ˆ—์…ˆ์ด ๊ฐ€๋Šฅํ• ๋•Œ๋งˆ๋‹ค ๋‚˜๋ˆ„์–ด์„œ integer ๋ฒ”์œ„๋ฅผ ๋„˜์ง€ ์•Š๋„๋ก ๋ฐฉ์ง€)
66
*
77
* TC: O(M + N)
8-
* 1๋ถ€ํ„ฐ ์ตœ๋Œ€ (M - 1) + (N + 1)๊นŒ์ง€ ์ˆœํšŒ
8+
* 1๋ถ€ํ„ฐ ์ตœ๋Œ€ (M - 1) + (N - 1)๊นŒ์ง€ ์ˆœํšŒ
99
*
1010
* SC: O(1)
1111
* ๊ณ„์‚ฐ์˜ ๊ฒฐ๊ณผ ๋ณ€์ˆ˜๊ฐ€ m, n๊ณผ ๋ฌด๊ด€ํ•˜๋ฏ€๋กœ ์ƒ์ˆ˜์˜ ๊ณต๊ฐ„๋ณต์žก๋„

0 commit comments

Comments
ย (0)