Depth-first Search

Subscribe to see which companies asked this question

You have solved  0/ 39 problems.
# Title Acceptance Difficulty
488 Zuma Game 37.3% Hard
473 Matchsticks to Square 32.8% Medium
472 Concatenated Words 30.2% Hard
439 Ternary Expression Parser 50.0% Medium
417 Pacific Atlantic Water Flow 32.6% Medium
394 Decode String 40.4% Medium
366 Find Leaves of Binary Tree 57.1% Medium
364 Nested List Weight Sum II 50.0% Medium
339 Nested List Weight Sum 59.8% Easy
337 House Robber III 41.6% Medium
332 Reconstruct Itinerary 28.1% Medium
329 Longest Increasing Path in a Matrix 35.5% Hard
323 Number of Connected Components in an Undirected Graph 46.8% Medium
301 Remove Invalid Parentheses 34.6% Hard
261 Graph Valid Tree 36.6% Medium
257 Binary Tree Paths 34.9% Easy
210 Course Schedule II 25.7% Medium
207 Course Schedule 30.4% Medium
200 Number of Islands 32.4% Medium
199 Binary Tree Right Side View 38.7% Medium
133 Clone Graph 25.0% Medium
129 Sum Root to Leaf Numbers 35.2% Medium
124 Binary Tree Maximum Path Sum 25.1% Hard
117 Populating Next Right Pointers in Each Node II 33.5% Hard
116 Populating Next Right Pointers in Each Node 36.9% Medium
114 Flatten Binary Tree to Linked List 33.6% Medium
113 Path Sum II 31.5% Medium
112 Path Sum 33.0% Easy
111 Minimum Depth of Binary Tree 32.3% Easy
110 Balanced Binary Tree 36.2% Easy
109 Convert Sorted List to Binary Search Tree 32.8% Medium
108 Convert Sorted Array to Binary Search Tree 40.4% Medium
106 Construct Binary Tree from Inorder and Postorder Traversal 31.0% Medium
105 Construct Binary Tree from Preorder and Inorder Traversal 30.8% Medium
104 Maximum Depth of Binary Tree 50.9% Easy
101 Symmetric Tree 37.0% Easy
100 Same Tree 45.3% Easy
99 Recover Binary Search Tree 28.7% Hard
98 Validate Binary Search Tree 22.4% Medium
Send Feedback