We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b1c111 commit 55a43fcCopy full SHA for 55a43fc
โunique-paths/wogha95.js
@@ -5,7 +5,7 @@
5
* (+ ํฉํ ๋ฆฌ์ผ์ ์๋ ๋งค์ฐ ๋น ๋ฅด๊ฒ ์ปค์ง๋ฏ๋ก ์ค๊ฐ ๋๋์ ์ด ๊ฐ๋ฅํ ๋๋ง๋ค ๋๋์ด์ integer ๋ฒ์๋ฅผ ๋์ง ์๋๋ก ๋ฐฉ์ง)
6
*
7
* TC: O(M + N)
8
- * 1๋ถํฐ ์ต๋ (M - 1) + (N + 1)๊น์ง ์ํ
+ * 1๋ถํฐ ์ต๋ (M - 1) + (N - 1)๊น์ง ์ํ
9
10
* SC: O(1)
11
* ๊ณ์ฐ์ ๊ฒฐ๊ณผ ๋ณ์๊ฐ m, n๊ณผ ๋ฌด๊ดํ๋ฏ๋ก ์์์ ๊ณต๊ฐ๋ณต์ก๋
0 commit comments