GoodTecher

Be a Good Techer and Tech for Good. www.goodtecher.com

Skip to content
Menu
  • Home
  • LeetCode
    • Array
    • Binary Search
    • Binary Tree
    • Depth First Search
    • Design
    • Dynamic Programming
    • Linked List
    • Math
    • Stack
    • String
    • Two Pointers
    • Union Find
  • Useful

Category: Binary Tree

  • Posted on April 23, 2021April 23, 2021
  • Binary Tree

LeetCode 501. Find Mode in Binary Search Tree

Description https://leetcode.com/problems/find-mode-in-binary-search-tree/ Given the root of a binary search tree (BST) with duplicates, return all the mode(s) (i.e., the most frequently occurred element) in it.…

Continue Reading
  • Posted on April 10, 2021April 10, 2021
  • Binary Tree

LeetCode 1469. Find All The Lonely Nodes

Description https://leetcode.com/problems/find-all-the-lonely-nodes/ In a binary tree, a lonely node is a node that is the only child of its parent node. The…

Continue Reading
  • Posted on April 2, 2021
  • Binary Tree

LeetCode 270. Closest Binary Search Tree Value

Description https://leetcode.com/problems/closest-binary-search-tree-value/ Given the root of a binary search tree and a target value, return the value in the BST that is closest to the target.…

Continue Reading
  • Posted on March 31, 2021March 31, 2021
  • Binary Tree

LeetCode 653. Two Sum IV – Input is a BST

Description https://leetcode.com/problems/two-sum-iv-input-is-a-bst/ Given the root of a Binary Search Tree and a target number k, return true if there exist two elements in the BST…

Continue Reading
  • Posted on March 17, 2021March 17, 2021
  • Binary Tree

LeetCode 637. Average of Levels in Binary Tree

Description https://leetcode.com/problems/average-of-levels-in-binary-tree/ Given the root of a binary tree, return the average value of the nodes on each level in the form of…

Continue Reading
  • Posted on March 12, 2021March 12, 2021
  • Binary Tree

LeetCode 897. Increasing Order Search Tree

Description https://leetcode.com/problems/increasing-order-search-tree/ Given the root of a binary search tree, rearrange the tree in in-order so that the leftmost node in the tree is…

Continue Reading
  • Posted on March 10, 2021March 10, 2021
  • Binary Tree

LeetCode 965. Univalued Binary Tree

Description https://leetcode.com/problems/univalued-binary-tree/ A binary tree is univalued if every node in the tree has the same value. Return true if and only if the…

Continue Reading
  • Posted on March 7, 2021March 7, 2021
  • Binary Tree

LeetCode 226. Invert Binary Tree

Description https://leetcode.com/problems/invert-binary-tree/ Invert a binary tree. Example: Input: 4 / \ 2 7 / \ / \ 1 3 6…

Continue Reading
  • Posted on March 4, 2021March 4, 2021
  • Binary Tree

LeetCode 589. N-ary Tree Preorder Traversal

Description https://leetcode.com/problems/n-ary-tree-postorder-traversal/ Given an n-ary tree, return the preorder traversal of its nodes’ values. Nary-Tree input serialization is represented in their level order…

Continue Reading
  • Posted on March 4, 2021March 4, 2021
  • Binary Tree

LeetCode 590. N-ary Tree Postorder Traversal

Description https://leetcode.com/problems/n-ary-tree-postorder-traversal/ Given an n-ary tree, return the postorder traversal of its nodes’ values. Nary-Tree input serialization is represented in their level order…

Continue Reading

Posts navigation

Previous Page Page 1 … Page 3 Page 4 Page 5 … Page 7 Next Page

Follow GoodTecher

Categories

  • HackerRank (1)
  • Interview (7)
  • LeetCode (588)
    • Array (185)
    • Backtracking (18)
    • Binary Search (19)
    • Binary Tree (63)
    • Bit Manipulation (15)
    • Database (40)
    • Depth First Search (6)
    • Design (10)
    • Dynamic Programming (17)
    • Graph (18)
    • Greedy (5)
    • Heap (1)
    • Linked List (26)
    • Math (36)
    • Recursion (3)
    • Sorting (11)
    • Stack (11)
    • String (95)
    • Two Pointers (12)
    • Union Find (2)
  • Machine Learning (7)
  • Technical Solutions (2)
  • Useful (3)
© Copyright 2025 – GoodTecher
Cell Theme by DesignOrbital ⋅ Powered by WordPress