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 25, 2020May 15, 2021
  • Binary Tree

LeetCode 230. Kth Smallest Element in a BST

Description https://leetcode.com/problems/kth-smallest-element-in-a-bst/ Given the root of a binary search tree, and an integer k, return the kth (1-indexed) smallest element in the tree. Example 1: Input: root…

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

LeetCode 94. Binary Tree Inorder Traversal

Description https://leetcode.com/problems/binary-tree-inorder-traversal/ Given a binary tree, return the inorder traversal of its nodes’ values. Example: Input: [1,null,2,3] 1 \ 2 / 3…

Continue Reading
  • Posted on April 20, 2020April 20, 2020
  • Binary Tree

LeetCode 1008. Construct Binary Search Tree from Preorder Traversal

Description https://leetcode.com/problems/construct-binary-search-tree-from-preorder-traversal/ Return the root node of a binary search tree that matches the given preorder traversal. (Recall that a binary search tree is a…

Continue Reading
  • Posted on April 12, 2020April 12, 2020
  • Binary Tree

LeetCode 543. Diameter of Binary Tree

Description https://leetcode.com/problems/diameter-of-binary-tree/ Given a binary tree, you need to compute the length of the diameter of the tree. The diameter…

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

LeetCode 108. Convert Sorted Array to Binary Search Tree

Description https://leetcode.com/problems/convert-sorted-array-to-binary-search-tree/ Given an array where elements are sorted in ascending order, convert it to a height balanced BST. For…

Continue Reading
  • Posted on March 29, 2020July 13, 2021
  • Binary Tree

LeetCode 98. Validate Binary Search Tree

Description https://leetcode.com/problems/validate-binary-search-tree/ Given the root of a binary tree, determine if it is a valid binary search tree (BST). A valid BST is defined as…

Continue Reading
  • Posted on May 12, 2018January 16, 2021
  • Binary Tree

LeetCode 102. Binary Tree Level Order Traversal

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

Continue Reading
  • Posted on May 6, 2018July 17, 2021
  • Binary Tree

LeetCode 111. Minimum Depth of Binary Tree

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

Continue Reading
  • Posted on April 28, 2018April 6, 2021
  • Binary Tree

LeetCode 110. Balanced Binary Tree

Description https://leetcode.com/problems/balanced-binary-tree/ Given a binary tree, determine if it is height-balanced. For this problem, a height-balanced binary tree is defined…

Continue Reading
  • Posted on April 21, 2018January 26, 2021
  • Binary Tree

LeetCode 104. Maximum Depth of Binary Tree

Description Given a binary tree, find its maximum depth. The maximum depth is the number of nodes along the longest…

Continue Reading

Posts navigation

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