Tree Problems
Tree problems test your ability to think recursively. From basic traversals (inorder, preorder, postorder) to more advanced operations like serialization, lowest common ancestor, and path sums.
47 problems
Browse by Topic
ArrayBFSBacktrackingBinary SearchBinary Search TreeBinary TreeBit ManipulationBitmaskBoyer-Moore VotingCombinatoricsDFSDesignDivide and ConquerDynamic ProgrammingGeometryGraphGreedyHash TableHeapInorder TraversalInterval DPIteratorLinked ListMathMatrixMemoizationMerge SortMinimum Spanning TreeMonotonic QueueMonotonic StackPermutation CyclesPostorder TraversalPrefix SumQueueRadix SortRecursionShortest PathSimulationSliding WindowSortingSorting&SearchingStackStack&QueueStringString MatchingStrongly Connected ComponentsTopological SortTreeTrieTriesTwo PointersUnion Find