Skip to content
  • Home
  • Algorithms
  • DS
  • Salesforce
  • Courses
    • C Programming
    • Data Structures with C/C++
    • Algorithms and Interview questions
    • ACCOUNTS
      • TALLY ERP9 Course Structure
  • Submit your article
Search
Close

Tag: Binary Search Tree

Find the nearest integer of a given number in the binary search tree.

GalleryOctober 22, 2020October 22, 2020 KodeBinary

Given a Binary Search Tree (BST) contains integers and an integer. We aim to find the nearest node to input integer in the BST. Let us understand this with an example. Let’s see how our solution works to get the nearest node to the target integer. This algorithm runs with O(H), where is ‘H’ isRead More »

Find two nodes with a given sum in a binary search tree.

GalleryJuly 10, 2020July 10, 2020 KodeBinary

We were given a binary search tree(BST) and a sum. We aim to find any two nodes with a total that is equivalent to input sum. Let us see this with an example. In the above BST, we are going to find a sum of two nodes as 9. Our approach to solve this, firstlyRead More »

How to check a binary tree is BST or not

GalleryMay 15, 2019May 16, 2020 KodeBinary

Given any binary tree, the aim is to find the given tree is BST or not. First of all, we need to see what are the properties of a BST. It is a binary tree (has all binary tree properties) All left children are less than the root value. Whereas all right children are greaterRead More »

Find ceil of a given node in the binary search tree

GalleryMay 4, 2019May 30, 2020 KodeBinary

Ceil of a node in a given binary search tree is defined as a node that is equal to or nearest maximum node of the given node. Let’s take the below picture, which demonstrates the ceiling node of the input node. We can consider this problem is as similar to finding a node in aRead More »

Subscribe to KodeBinary

Enter your email address to subscribe KodeBinary and receive notifications of new posts by email.

Join 1,773 other subscribers

Recent Posts

  • Find the sum of the largest increasing branch in an n-ary tree
  • The fizzbuzz program in python
  • Python program to add two numbers
  • Program to find factorial of a number in python
  • Armstrong number in python

Our Partners

Home, Car Loan EMI Calculator

Categories

  • accounts
  • Algorithms
  • autoCAD
  • C
  • C++
  • COVID 19
  • DS
  • HTML
  • Java
  • ms office
  • Python
  • Salesforce
  • TALLY
  • Tally Prime
  • Uncategorized

Tags

Accounts Algorithms Amazon Ancillary Rules Arrays assignment bill of materials Binary Search Tree C++ company contra voucher cost categories cost centers C Programming DataStructures debit Dynamic Programming Graphs GROUPS groups and ledgers gst Interview Questions INVENTORY ledgers Linked List Microsoft payment voucher Purchase Python Queue Quiz receipt voucher Recursion sales Sorting Stack STOCK ITEMS Strings tally tallyerp9 tally prime TALLY WITH GST Trees Voucher vouchers

Follow Us

  • Facebook
  • Tumblr
  • Instagram
  • LinkedIn
  • Twitter
Copyrights 2019 | KodeBinary.com.
Back to top