Skip to content

Lets Code

  • Array
  • Bitwise
  • Database
  • Mysql
  • Redis
  • Design
  • Design Pattern
  • Dynamic Programming
  • Graph
  • Hashing
  • Linked List
  • Miscellaneous
    • Interesting Read
    • Math
    • Interview
    • InterviewBit
    • Concept
    • Maths
    • Puzzle
    • Random Problem
    • Random Topics
    • Resources
    • OS
    • Priority Queue
    • TODO
  • Python
  • Basic
  • Queue
  • Quora
  • Recursion
  • Search
  • Sorting
  • Stack
  • String
  • Tree
    • Trie
    • BST
    • Heap

Category: BST

BST – Set 1

July 10, 2017July 24, 2020 A1 Comment

**** Tree 28 Must Do Practise Question **** BST Visualizer  BST Complexity In a complete(almost)  binary tree number of nodes (n) and height of tree (h) have a relationship like => n = 2^(h+1) -1,   this is the all the nodes of the tree. Conversely if we have n nodes in a complete(almost) BT then height of… Continue reading BST – Set 1 →

Self Balancing Binary Tree

July 2, 2017October 2, 2017 ALeave a comment

AVL Tree Implementation. Code. GFG - Insert, Delete  Youtube Time Complexity: The rotation operations (left and right rotate) take constant time as only few pointers are being changed there. Updating the height and getting the balance factor also take constant time. So the time complexity of AVL insert remains same as BST insert which is O(h) where… Continue reading Self Balancing Binary Tree →

Search

Follow Lets Code on WordPress.com
Create a free website or blog at WordPress.com.
  • Subscribe Subscribed
    • Lets Code
    • Already have a WordPress.com account? Log in now.
    • Lets Code
    • Subscribe Subscribed
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar
 

Loading Comments...
 

You must be logged in to post a comment.

    Design a site like this with WordPress.com
    Get started