Depth-first Search

Subscribe to see which companies asked this question

You have solved  0/ 55 problems.
# Title Acceptance Difficulty
638 Shopping Offers 40.5% Medium
576 Out of Boundary Paths 32.4% Medium
547 Friend Circles 49.5% Medium
546 Remove Boxes 32.0% Hard
542 01 Matrix 33.0% Medium
533 Lonely Pixel II 42.0% Medium
531 Lonely Pixel I 54.0% Medium
529 Minesweeper 49.9% Medium
515 Find Largest Value in Each Tree Row 54.8% Medium
514 Freedom Trail 38.3% Hard
513 Find Bottom Left Tree Value 55.6% Medium
505 The Maze II 36.5% Medium
499 The Maze III 32.1% Hard
494 Target Sum 43.8% Medium
491 Increasing Subsequences 38.9% Medium
490 The Maze 42.9% Medium
488 Zuma Game 37.1% Hard
473 Matchsticks to Square 35.1% Medium
472 Concatenated Words 30.1% Hard
439 Ternary Expression Parser 50.4% Medium
417 Pacific Atlantic Water Flow 33.6% Medium
394 Decode String 41.2% Medium
366 Find Leaves of Binary Tree 59.3% Medium
364 Nested List Weight Sum II 52.1% Medium
339 Nested List Weight Sum 61.4% Easy
337 House Robber III 43.2% Medium
332 Reconstruct Itinerary 29.1% Medium
329 Longest Increasing Path in a Matrix 36.2% Hard
323 Number of Connected Components in an Undirected Graph 47.8% Medium
301 Remove Invalid Parentheses 35.0% Hard
261 Graph Valid Tree 37.6% Medium
257 Binary Tree Paths 38.0% Easy
210 Course Schedule II 27.7% Medium
207 Course Schedule 31.9% Medium
200 Number of Islands 34.3% Medium
199 Binary Tree Right Side View 40.6% Medium
133 Clone Graph 25.1% Medium
129 Sum Root to Leaf Numbers 36.5% Medium
124 Binary Tree Maximum Path Sum 26.0% Hard
117 Populating Next Right Pointers in Each Node II 33.7% Medium
116 Populating Next Right Pointers in Each Node 36.9% Medium
114 Flatten Binary Tree to Linked List 34.9% Medium
113 Path Sum II 33.4% Medium
112 Path Sum 33.9% Easy
111 Minimum Depth of Binary Tree 33.0% Easy
110 Balanced Binary Tree 37.3% Easy
109 Convert Sorted List to Binary Search Tree 33.9% Medium
108 Convert Sorted Array to Binary Search Tree 42.0% Easy
106 Construct Binary Tree from Inorder and Postorder Traversal 32.0% Medium
105 Construct Binary Tree from Preorder and Inorder Traversal 32.1% Medium
104 Maximum Depth of Binary Tree 52.5% Easy
101 Symmetric Tree 38.6% Easy
100 Same Tree 46.4% Easy
99 Recover Binary Search Tree 29.8% Hard
98 Validate Binary Search Tree 23.2% Medium
  Send Feedback