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 May 21, 2021May 21, 2021
  • Binary Tree

LeetCode 654. Maximum Binary Tree

Description https://leetcode.com/problems/all-elements-in-two-binary-search-trees/ You are given an integer array nums with no duplicates. A maximum binary tree can be built recursively from nums using the following algorithm:…

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

LeetCode 1305. All Elements in Two Binary Search Trees

Description https://leetcode.com/problems/all-elements-in-two-binary-search-trees/ Given two binary search trees root1 and root2. Return a list containing all the integers from both trees sorted in ascending order. Example 1: Input: root1 =…

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

LeetCode 872. Leaf-Similar Trees

Description https://leetcode.com/problems/leaf-similar-trees/ Consider all the leaves of a binary tree, from left to right order, the values of those leaves form a leaf…

Continue Reading
  • Posted on May 6, 2021May 6, 2021
  • Binary Tree

LeetCode 783. Minimum Distance Between BST Nodes

Description https://leetcode.com/problems/minimum-distance-between-bst-nodes/ Given the root of a Binary Search Tree (BST), return the minimum difference between the values of any two different nodes…

Continue Reading
  • Posted on May 5, 2021May 5, 2021
  • Binary Tree

LeetCode 404. Sum of Left Leaves

Description https://leetcode.com/problems/sum-of-left-leaves/ Given the root of a binary tree, return the sum of all left leaves. Example 1: Input: root = [3,9,20,null,null,15,7]…

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

LeetCode 559. Maximum Depth of N-ary Tree

Description https://leetcode.com/problems/maximum-depth-of-n-ary-tree/ Given a n-ary tree, find its maximum depth. The maximum depth is the number of nodes along the…

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

LeetCode 257. Binary Tree Paths

Description https://leetcode.com/problems/path-crossing/ Given the root of a binary tree, return all root-to-leaf paths in any order. A leaf is a node with no children. Example 1:…

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

LeetCode 530. Minimum Absolute Difference in BST

Description https://leetcode.com/problems/minimum-absolute-difference-in-bst/ Given the root of a Binary Search Tree (BST), return the minimum absolute difference between the values of any two different…

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

LeetCode 671. Second Minimum Node In a Binary Tree

Description https://leetcode.com/problems/second-minimum-node-in-a-binary-tree/ Given a non-empty special binary tree consisting of nodes with the non-negative value, where each node in this…

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

LeetCode 606. Construct String from Binary Tree

Description https://leetcode.com/problems/construct-string-from-binary-tree/ You need to construct a string consists of parenthesis and integers from a binary tree with the preorder…

Continue Reading

Posts navigation

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