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 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, 2020March 29, 2020
  • Binary Tree

LeetCode 98. Validate Binary Search Tree

Description https://leetcode.com/problems/validate-binary-search-tree/ Given a binary tree, determine if it is a valid binary search tree (BST). Assume a BST is…

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, 2018May 6, 2018
  • Binary Tree

LeetCode 111. Minimum Depth of Binary Tree

Description https://leetcode.com/problems/minimum-depth-of-binary-tree/description/ 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 19, 2019
  • Binary Tree

LeetCode 110. Balanced Binary Tree

Description https://leetcode.com/problems/balanced-binary-tree/description/ 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, 2018March 29, 2020
  • 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
  • Posted on April 14, 2018January 15, 2021
  • Binary Tree

LeetCode 101. Symmetric Tree

Description https://leetcode.com/problems/symmetric-tree/description/ Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center). For…

Continue Reading
  • Posted on April 7, 2018April 7, 2018
  • Binary Tree

LeetCode 100. Same Tree

Description https://leetcode.com/problems/same-tree/description/ Given two binary trees, write a function to check if they are the same or not. Two binary…

Continue Reading
  • Posted on September 24, 2017March 25, 2018
  • Binary Tree

LeetCode 144. Binary Tree Preorder Traversal

Description https://leetcode.com/problems/binary-tree-preorder-traversal/description/ Given a binary tree, return the preorder traversal of its nodes’ values. For example: Given binary tree {1,#,2,3}, 1 \ 2…

Continue Reading

Posts navigation

Previous Page Page 1 Page 2

Follow GoodTecher

Categories

  • HackerRank (1)
  • Interview (5)
  • LeetCode (185)
    • Array (40)
    • Backtracking (10)
    • Binary Search (11)
    • Binary Tree (20)
    • Bit Manipulation (4)
    • Depth First Search (6)
    • Design (4)
    • Dynamic Programming (13)
    • Graph (3)
    • Linked List (13)
    • Math (16)
    • Sorting (5)
    • Stack (8)
    • String (23)
    • Two Pointers (10)
    • Union Find (2)
  • Machine Learning (7)
  • Technical Solutions (2)
  • Useful (2)
© Copyright 2021 – GoodTecher
Cell Theme by DesignOrbital ⋅ Powered by WordPress