45. Jump Game II

greedy

time: O(n)

space: O(1)

implicit BFS version

not easy to think, give it up

dp - dfs + memo

O(n^2)

n^2 思路

Last updated

Was this helpful?