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.
- Greedy401
- Tree242
- Array1842
- String778
- Hash Table749
- Math565
- Dynamic Programming534
- Sorting483
- Depth-First Search338
- Binary Search305
- Matrix267
- Breadth-First Search261
Asked on LeetCode
601 questions tagged Greedy or Tree · all time
- Same TreeeasyTreeDepth-First SearchBreadth-First SearchBinary Tree8 companies
- Create Binary Tree From DescriptionsmediumArrayHash TableTreeBinary Tree8 companies
- Put Marbles in BagshardArrayGreedySortingHeap (Priority Queue)8 companies
- Rearranging FruitshardArrayHash TableGreedySort8 companies
- Construct Binary Tree from Preorder and Postorder TraversalmediumArrayHash TableDivide and ConquerTree+18 companies
- Minimum Operations to Reduce an Integer to 0mediumDynamic ProgrammingGreedyBit Manipulation7 companies
- Using a Robot to Print the Lexicographically Smallest StringmediumHash TableStringStackGreedy7 companies
- Subtree of Another TreeeasyTreeDepth-First SearchString MatchingBinary Tree+17 companies
- Construct Quad TreemediumArrayDivide and ConquerTreeMatrix7 companies
- Unique Binary Search TreesmediumMathDynamic ProgrammingTreeBinary Search Tree+17 companies
- Minimum Number of Refueling StopshardArrayDynamic ProgrammingGreedyHeap (Priority Queue)7 companies
- Maximum SwapmediumMathGreedy7 companies
- Greatest Sum Divisible by ThreemediumArrayDynamic ProgrammingGreedySorting7 companies
- Shortest Unsorted Continuous SubarraymediumArrayTwo PointersStackGreedy+27 companies
- Merge Two Binary TreeseasyTreeDepth-First SearchBreadth-First SearchBinary Tree7 companies
- Binary Search Tree IteratormediumStackTreeDesignBinary Search Tree+27 companies
- Furthest Building You Can ReachmediumArrayGreedyHeap (Priority Queue)7 companies
- Insert into a Binary Search TreemediumTreeBinary Search TreeBinary Tree7 companies
- Valid Triangle NumbermediumArrayTwo PointersBinary SearchGreedy+17 companies
- Balanced Binary TreeeasyTreeDepth-First SearchBinary Tree7 companies
- Binary Tree Inorder TraversaleasyStackTreeDepth-First SearchBinary Tree7 companies
- Populating Next Right Pointers in Each Node IImediumLinked ListTreeDepth-First SearchBreadth-First Search+17 companies
- Find Largest Value in Each Tree RowmediumTreeDepth-First SearchBreadth-First SearchBinary Tree7 companies
- Invert Binary TreeeasyTreeDepth-First SearchBreadth-First SearchBinary Tree7 companies
- Boats to Save PeoplemediumArrayTwo PointersGreedySorting+17 companies
- Recover Binary Search TreemediumTreeDepth-First SearchBinary Search TreeBinary Tree7 companies
- Serialize and Deserialize N-ary TreehardStringTreeDepth-First SearchBreadth-First Search7 companies
- Tree DiametermediumTreeDepth-First SearchBreadth-First SearchGraph Theory+27 companies
- Construct Binary Tree from Inorder and Postorder TraversalmediumArrayHash TableDivide and ConquerTree+17 companies
- Two Sum IV - Input is a BSTeasyHash TableTwo PointersTreeDepth-First Search+37 companies
- Path Sum IImediumBacktrackingTreeDepth-First SearchBinary Tree7 companies
- Find Duplicate SubtreesmediumHash TableTreeDepth-First SearchBinary Tree7 companies
- Convert Sorted List to Binary Search TreemediumLinked ListDivide and ConquerTreeBinary Search Tree+17 companies
- Maximum 69 NumbereasyMathGreedy6 companies
- House Robber IVmediumArrayBinary SearchDynamic ProgrammingGreedy6 companies
- Collect Coins in a TreehardArrayTreeGraph TheoryTopological Sort6 companies
- Step-By-Step Directions From a Binary Tree Node to AnothermediumStringTreeDepth-First SearchBinary Tree+26 companies
- Smallest Subsequence of Distinct CharactersmediumStringStackGreedyMonotonic Stack6 companies
- Closest Binary Search Tree ValueeasyBinary SearchTreeDepth-First SearchBinary Search Tree+16 companies
- Sum of Left LeaveseasyTreeDepth-First SearchBreadth-First SearchBinary Tree6 companies
- Recover a Tree From Preorder TraversalhardStringTreeDepth-First SearchBinary Tree6 companies
- Group the People Given the Group Size They Belong TomediumArrayHash TableGreedy6 companies
- Couples Holding HandshardGreedyDepth-First SearchBreadth-First SearchUnion-Find+16 companies
- Longest Palindrome by Concatenating Two Letter WordsmediumArrayHash TableStringGreedy+16 companies
- Cousins in Binary TreeeasyTreeDepth-First SearchBreadth-First SearchBinary Tree6 companies
- Populating Next Right Pointers in Each NodemediumLinked ListTreeDepth-First SearchBreadth-First Search+16 companies
- Binary Tree PathseasyStringBacktrackingTreeDepth-First Search+16 companies
- Construct K Palindrome StringsmediumHash TableStringGreedyCounting6 companies
- Maximum Units on a TruckeasyArrayGreedySorting6 companies
- Count Complete Tree NodesmediumBinary SearchBit ManipulationTreeBinary Tree6 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.