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 November 28, 2021November 28, 2021
  • Binary Tree

LeetCode 1110. Delete Nodes And Return Forest

Description https://leetcode.com/problems/delete-nodes-and-return-forest/ Given the root of a binary tree, each node in the tree has a distinct value. After deleting all nodes…

Continue Reading
  • Posted on October 29, 2021October 29, 2021
  • Binary Tree

LeetCode 272. Closest Binary Search Tree Value II

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

Continue Reading
  • Posted on October 14, 2021October 14, 2021
  • Binary Tree

LeetCode 261. Graph Valid Tree

Description https://leetcode.com/problems/minimum-size-subarray-sum/ You have a graph of n nodes labeled from 0 to n – 1. You are given an integer n and a list…

Continue Reading
  • Posted on September 23, 2021September 23, 2021
  • Binary Tree

LeetCode 96. Unique Binary Search Trees

Description https://leetcode.com/problems/unique-binary-search-trees/ Given an integer n, return the number of structurally unique BST’s (binary search trees) which has exactly n nodes of unique values from 1 to n.…

Continue Reading
  • Posted on September 23, 2021September 23, 2021
  • Binary Tree

LeetCode 652. Find Duplicate Subtrees

Description https://leetcode.com/problems/find-duplicate-subtrees/ Given the root of a binary tree, return all duplicate subtrees. For each kind of duplicate subtrees, you only need to…

Continue Reading
  • Posted on September 22, 2021September 22, 2021
  • Binary Tree

LeetCode 482. License Key Formatting

Description https://leetcode.com/problems/license-key-formatting/ You are given a license key represented as a string s that consists of only alphanumeric characters and dashes. The…

Continue Reading
  • Posted on September 19, 2021September 19, 2021
  • Binary Tree

LeetCode 1161. Maximum Level Sum of a Binary Tree

Description https://leetcode.com/problems/maximum-level-sum-of-a-binary-tree/ Given the root of a binary tree, the level of its root is 1, the level of its children is 2, and…

Continue Reading
  • Posted on September 16, 2021September 16, 2021
  • Binary Tree

LeetCode 894. All Possible Full Binary Trees

Description https://leetcode.com/problems/all-possible-full-binary-trees/ Given an integer n, return a list of all possible full binary trees with n nodes. Each node of each tree in the answer…

Continue Reading
  • Posted on September 15, 2021September 18, 2021
  • Binary Tree

LeetCode 124. Binary Tree Maximum Path Sum

Description https://leetcode.com/problems/binary-tree-maximum-path-sum/ A path in a binary tree is a sequence of nodes where each pair of adjacent nodes in the sequence…

Continue Reading
  • Posted on August 22, 2021August 22, 2021
  • Binary Tree

LeetCode 173. Binary Search Tree Iterator

Description https://leetcode.com/problems/binary-search-tree-iterator/ Implement the BSTIterator class that represents an iterator over the in-order traversal of a binary search tree (BST): BSTIterator(TreeNode root) Initializes an object…

Continue Reading

Posts navigation

Page 1 Page 2 … 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