👩‍💻
LeetCode Practice
search
⌘Ctrlk
👩‍💻
LeetCode Practice
  • booksIntroduction
  • timelineAlgorithm
  • databaseData Structure
    • Hashing/Set
    • Linked List
    • Queue
    • Stack
    • Tree
    • Heap
  • comments-questionQuestion Topics
  • asteriskNo-Category
  • clipboard-list-checkCheatsheet
  • bell-ringReminder
gitbookPowered by GitBook
block-quoteOn this pagechevron-down
  1. databaseData Structure

Tree

hashtag
Binary Tree Operation

  • 226. Invert Binary Treearrow-up-right

  • 100. Same Treearrow-up-right

  • 617. Merge Two Binary Treesarrow-up-right

  • 111. Minimum Depth of Binary Treearrow-up-right

  • 104. Maximum Depth of Binary Treearrow-up-right

  • 637. Average of Levels in Binary Treearrow-up-right

  • 110. Balanced Binary Treearrow-up-right

  • 543. Diameter of Binary Treearrow-up-right

  • 112. Path Sumarrow-up-right

  • 236. Lowest Common Ancestor of a Binary Treearrow-up-right

  • 199. Binary Tree Right Side Viewarrow-up-right

  • 230. Kth Smallest Element in a BSTarrow-up-right

  • 297. Serialize and Deserialize Binary Treearrow-up-right

  • 105. Construct Binary Tree from Preorder and Inorder Traversalarrow-up-right: also add a set

hashtag
Binary Search Tree Related

  • 235. Lowest Common Ancestor of a Binary Search Treearrow-up-right

  • 98. Validate Binary Search Treearrow-up-right

  • No. 102 Binary Tree Level Order Traversal: BFS, DFS(record height)

hashtag
Divide and Conquer

  • 543. Diameter of Binary Treearrow-up-right

  • No. 687: devide and conquer

hashtag
Tree to String

  • 572. Subtree of Another Treearrow-up-right

hashtag
Trie

  • 208. Implement Trie (Prefix Tree)arrow-up-right

PreviousStackchevron-leftNextHeapchevron-right

Last updated 2 months ago

  • Binary Tree Operation
  • Binary Search Tree Related
  • Divide and Conquer
  • Tree to String
  • Trie
return f",{node.val},{serialize(node.left)},{serialize(node.right)}"