Home LeetCode 797. All Paths From Source to Target
Post
Cancel

LeetCode 797. All Paths From Source to Target

797. All Paths From Source to Target

Problem & Example

Questions before reading example

나의 풀이

Spent time

  • 30m

Review

  • dfs, backtracking 와 친해지는중..
  • index 를 알맞게 잘 활용하는 것(target 과 length - 1, 2차원 array 등) 은 항상 어렵다.
  • 처음에 0 을 넣어주는 아이디어도 discussion 을 통해서 알 수 있었다.
This post is licensed under CC BY 4.0 by the author.