Problems
Callback's own problems and the LeetCode questions companies have been asking, in one place — pick a category, then filter by company, frequency, status, difficulty, topic, and language.
- Depth-First Search338
- Array1842
- String778
- Hash Table749
- Math565
- Dynamic Programming534
- Sorting483
- Greedy401
- Binary Search305
- Matrix267
- Breadth-First Search261
- Tree242
Asked on LeetCode
307 questions tagged Depth-First Search · all time
- Power Grid MaintenancemediumArrayHash TableDepth-First SearchBreadth-First Search+45 companies
- Inorder Successor in BSTmediumTreeDepth-First SearchBinary Search TreeBinary Tree5 companies
- All Paths From Source to TargetmediumBacktrackingDepth-First SearchBreadth-First SearchGraph Theory+15 companies
- Delete Nodes And Return ForestmediumArrayHash TableTreeDepth-First Search+15 companies
- Divide Nodes Into the Maximum Number of GroupshardDepth-First SearchBreadth-First SearchUnion-FindGraph Theory5 companies
- Sort Items by Groups Respecting DependencieshardDepth-First SearchBreadth-First SearchGraph TheoryTopological Sort+15 companies
- The Maze IImediumArrayDepth-First SearchBreadth-First SearchGraph Theory+65 companies
- Lexicographical NumbersmediumDepth-First SearchTrie5 companies
- Longest Cycle in a GraphhardDepth-First SearchBreadth-First SearchGraph TheoryTopological Sort+25 companies
- Course Schedule IVmediumDepth-First SearchBreadth-First SearchGraph TheoryTopological Sort5 companies
- Reorder Routes to Make All Paths Lead to the City ZeromediumDepth-First SearchBreadth-First SearchGraph Theory5 companies
- Flatten Binary Tree to Linked ListmediumLinked ListStackTreeDepth-First Search+15 companies
- Critical Connections in a NetworkhardDepth-First SearchGraph TheoryBiconnected ComponentBridge (Graph)5 companies
- Most Profitable Path in a TreemediumArrayTreeDepth-First SearchBreadth-First Search+15 companies
- Delete Duplicate Folders in SystemhardArrayHash TableStringDepth-First Search+35 companies
- Maximum Sum BST in Binary TreehardDynamic ProgrammingTreeDepth-First SearchBinary Search Tree+25 companies
- Similar String GroupshardArrayHash TableStringDepth-First Search+25 companies
- Minimum Depth of Binary TreeeasyTreeDepth-First SearchBreadth-First SearchBinary Tree5 companies
- Maximum Product of Splitted Binary TreemediumTreeDepth-First SearchBinary Tree5 companies
- Find Bottom Left Tree ValuemediumTreeDepth-First SearchBreadth-First SearchBinary Tree5 companies
- Minimum Fuel Cost to Report to the CapitalmediumTreeDepth-First SearchBreadth-First SearchGraph Theory5 companies
- Balance a Binary Search TreemediumDivide and ConquerGreedyTreeDepth-First Search+25 companies
- Binary Tree Preorder TraversaleasyStackTreeDepth-First SearchBinary Tree5 companies
- Average of Levels in Binary TreeeasyTreeDepth-First SearchBreadth-First SearchBinary Tree5 companies
- Count Servers that CommunicatemediumArrayDepth-First SearchBreadth-First SearchUnion-Find+25 companies
- Jump Game IIImediumArrayDepth-First SearchBreadth-First Search4 companies
- Longest Path With Different Adjacent CharactershardArrayStringTreeDepth-First Search+24 companies
- Count Sub IslandsmediumArrayDepth-First SearchBreadth-First SearchUnion-Find+14 companies
- Find Leaves of Binary TreemediumTreeDepth-First SearchBinary TreeDP on Trees4 companies
- Count Paths That Can Form a Palindrome in a TreehardHash TableBit ManipulationTreeDepth-First Search4 companies
- Convert Binary Search Tree to Sorted Doubly Linked ListmediumLinked ListStackTreeDepth-First Search+34 companies
- Count Unreachable Pairs of Nodes in an Undirected GraphmediumDepth-First SearchBreadth-First SearchUnion-FindGraph Theory4 companies
- Lowest Common Ancestor of a Binary Tree IVmediumHash TableTreeDepth-First SearchBinary Tree+24 companies
- Count Nodes Equal to Average of SubtreemediumTreeDepth-First SearchBinary Tree4 companies
- Lowest Common Ancestor of a Binary Tree IImediumTreeDepth-First SearchBinary TreeBinary Lifting+14 companies
- Regions Cut By SlashesmediumArrayHash TableDepth-First SearchBreadth-First Search+34 companies
- Battleships in a BoardmediumArrayDepth-First SearchMatrix4 companies
- Sentence Similarity IImediumArrayHash TableStringDepth-First Search+24 companies
- Binary Tree Longest Consecutive SequencemediumTreeDepth-First SearchBinary TreeDP on Trees4 companies
- Trim a Binary Search TreemediumTreeDepth-First SearchBinary Search TreeBinary Tree4 companies
- Last Day Where You Can Still CrosshardArrayBinary SearchDepth-First SearchBreadth-First Search+24 companies
- Smallest Subtree with all the Deepest NodesmediumHash TableTreeDepth-First SearchBreadth-First Search+44 companies
- Loud and RichmediumArrayDepth-First SearchGraph TheoryTopological Sort+14 companies
- Count Good Nodes in Binary TreemediumTreeDepth-First SearchBreadth-First SearchBinary Tree4 companies
- Lowest Common Ancestor of Deepest LeavesmediumHash TableTreeDepth-First SearchBreadth-First Search+44 companies
- Number of Closed IslandsmediumArrayDepth-First SearchBreadth-First SearchUnion-Find+14 companies
- Maximum Level Sum of a Binary TreemediumTreeDepth-First SearchBreadth-First SearchBinary Tree4 companies
- Kth Ancestor of a Tree NodehardBinary SearchDynamic ProgrammingBit ManipulationTree+44 companies
- Longest Absolute File PathmediumStringStackDepth-First Search4 companies
- Find Mode in Binary Search TreeeasyTreeDepth-First SearchBinary Search TreeBinary Tree4 companies
Listings only — titles, difficulty, and tags link out to LeetCode. Imported from the leetcode-company-wise-problems snapshot dated 1 June 2025. Frequency is that dataset's own relative score within a company and time range.