Depth-first Search

Subscribe to see which companies asked this question

You have solved  0/ 63 problems.
# Title Acceptance Difficulty
721 Accounts Merge 27.4% Medium
711 Number of Distinct Islands II 37.7% Hard
695 Max Area of Island 52.2% Easy
694 Number of Distinct Islands 43.8% Medium
690 Employee Importance 52.9% Easy
685 Redundant Connection II 28.4% Hard
679 24 Game 38.9% Hard
664 Strange Printer 32.9% Hard
638 Shopping Offers 43.4% Medium
576 Out of Boundary Paths 30.9% Medium
547 Friend Circles 49.2% Medium
546 Remove Boxes 34.2% Hard
542 01 Matrix 33.0% Medium
533 Lonely Pixel II 44.6% Medium
531 Lonely Pixel I 55.6% Medium
529 Minesweeper 49.4% Medium
515 Find Largest Value in Each Tree Row 55.1% Medium
514 Freedom Trail 39.1% Hard
513 Find Bottom Left Tree Value 56.1% Medium
505 The Maze II 38.2% Medium
499 The Maze III 32.7% Hard
494 Target Sum 43.6% Medium
491 Increasing Subsequences 38.8% Medium
490 The Maze 43.2% Medium
488 Zuma Game 37.4% Hard
473 Matchsticks to Square 35.5% Medium
472 Concatenated Words 30.5% Hard
439 Ternary Expression Parser 51.2% Medium
417 Pacific Atlantic Water Flow 34.1% Medium
394 Decode String 41.7% Medium
366 Find Leaves of Binary Tree 60.3% Medium
364 Nested List Weight Sum II 53.2% Medium
339 Nested List Weight Sum 62.8% Easy
337 House Robber III 44.0% Medium
332 Reconstruct Itinerary 29.4% Medium
329 Longest Increasing Path in a Matrix 36.9% Hard
323 Number of Connected Components in an Undirected Graph 48.3% Medium
301 Remove Invalid Parentheses 35.5% Hard
261 Graph Valid Tree 38.1% Medium
257 Binary Tree Paths 39.7% Easy
210 Course Schedule II 29.1% Medium
207 Course Schedule 32.8% Medium
200 Number of Islands 35.6% Medium
199 Binary Tree Right Side View 41.6% Medium
133 Clone Graph 25.1% Medium
129 Sum Root to Leaf Numbers 37.2% Medium
124 Binary Tree Maximum Path Sum 26.6% Hard
117 Populating Next Right Pointers in Each Node II 33.8% Medium
116 Populating Next Right Pointers in Each Node 36.9% Medium
114 Flatten Binary Tree to Linked List 35.7% Medium
113 Path Sum II 34.6% Medium
112 Path Sum 34.4% Easy
111 Minimum Depth of Binary Tree 33.3% Easy
110 Balanced Binary Tree 37.9% Easy
109 Convert Sorted List to Binary Search Tree 34.5% Medium
108 Convert Sorted Array to Binary Search Tree 42.7% Easy
106 Construct Binary Tree from Inorder and Postorder Traversal 32.6% Medium
105 Construct Binary Tree from Preorder and Inorder Traversal 32.8% Medium
104 Maximum Depth of Binary Tree 53.4% Easy
101 Symmetric Tree 39.5% Easy
100 Same Tree 47.0% Easy
99 Recover Binary Search Tree 30.4% Hard
98 Validate Binary Search Tree 23.8% Medium