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 February 27, 2021February 27, 2021
  • Binary Tree

LeetCode 1302. Deepest Leaves Sum

Description https://leetcode.com/problems/deepest-leaves-sum/ Given a binary tree, return the sum of values of its deepest leaves. Example 1: Input: root =…

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

LeetCode 938. Range Sum of BST

Description https://leetcode.com/problems/range-sum-of-bst/solution/ Given the root node of a binary search tree, return the sum of values of all nodes with a value in…

Continue Reading
  • Posted on January 25, 2021January 25, 2021
  • Binary Tree

LeetCode 700. Search in a Binary Search Tree

Description https://leetcode.com/problems/swap-nodes-in-pairs/ You are given the root of a binary search tree (BST) and an integer val. Find the node in the BST…

Continue Reading
  • Posted on October 22, 2020October 22, 2020
  • Binary Tree

LeetCode 951. Flip Equivalent Binary Trees

Description https://leetcode.com/problems/flip-equivalent-binary-trees/ For a binary tree T, we can define a flip operation as follows: choose any node, and swap the left and…

Continue Reading
  • Posted on October 18, 2020September 26, 2021
  • Binary Tree

LeetCode 222. Count Complete Tree Nodes

Description https://leetcode.com/problems/count-complete-tree-nodes/ Given the root of a complete binary tree, return the number of the nodes in the tree. According to Wikipedia, every level, except…

Continue Reading
  • Posted on October 4, 2020October 4, 2020
  • Binary Tree

LeetCode 127. Word Ladder

Description https://leetcode.com/problems/word-ladder/ Given two words (beginWord and endWord), and a dictionary’s word list, find the length of shortest transformation sequence from beginWord to endWord, such…

Continue Reading
  • Posted on August 13, 2020August 17, 2021
  • Binary Tree

LeetCode 297. Serialize and Deserialize Binary Tree

Description https://leetcode.com/problems/serialize-and-deserialize-binary-tree/ Serialization is the process of converting a data structure or object into a sequence of bits so that…

Continue Reading
  • Posted on July 22, 2020July 22, 2020
  • Binary Tree

LeetCode 116. Populating Next Right Pointers in Each Node

Description https://leetcode.com/problems/search-a-2d-matrix-ii/ You are given a perfect binary tree where all leaves are on the same level, and every parent has two children.…

Continue Reading
  • Posted on June 3, 2020July 2, 2021
  • Binary Tree

LeetCode 103. Binary Tree Zigzag Level Order Traversal

Description https://leetcode.com/problems/binary-tree-zigzag-level-order-traversal/ Given the root of a binary tree, return the zigzag level order traversal of its nodes’ values. (i.e., from left to…

Continue Reading
  • Posted on May 25, 2020May 25, 2020
  • Binary Tree

LeetCode 105. Construct Binary Tree from Preorder and Inorder Traversal

Description https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/ Given preorder and inorder traversal of a tree, construct the binary tree. Note:You may assume that duplicates do…

Continue Reading

Posts navigation

Previous Page Page 1 … Page 4 Page 5 Page 6 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