seungriyou / algorithm-study

알고리즘 & SQL 문제 풀이 기록
https://leetcode.com/u/summer_y
0 stars 0 forks source link

[LC] 62. Unique Paths #54

Open seungriyou opened 8 months ago

seungriyou commented 8 months ago

https://leetcode.com/problems/unique-paths/

Approach

Idea 1: 2D DP (Space O(n^2))


Idea 2: 1D DP (Space O(n))


Complexity