• Skip to primary navigation
  • Skip to content
  • Skip to primary sidebar
  • Skip to secondary sidebar

GoHired

Interview Questions asked in Google, Microsoft, Amazon

Join WeekEnd Online Batch from 4-April-2020 on How to Crack Coding Interview in Just 10 Weeks : Fees just 20,000 INR

  • Home
  • Best Java Books
  • Algorithm
  • Internship
  • Certificates
  • About Us
  • Contact Us
  • Privacy Policy
  • Array
  • Stack
  • Queue
  • LinkedList
  • DP
  • Strings
  • Tree
  • Mathametical
  • Puzzles
  • Graph

Binary Search Tree

Handle duplicates in Binary Search Tree

April 17, 2017 by Dhaval Dave

In a Binary Search Tree (BST), all keys in left subtree of a key must be smaller and all keys in right subtree must be greater. So a Binary Search Tree by definition has distinct … Read More

Filed Under: Amazon Interview Question, Flipkart Interview Questions, Hacker Earth Questions, Interview Questions, Microsoft Interview Questions, problem Tagged With: Binary Search Tree, Binary Tree

Difference between a LinkedList and a Binary Search Tree BST

April 9, 2015 by Dhaval Dave

Pointers

In a linked list, the items are linked together through a single next pointer.

Next Nodes

In a binary tree, each node can have 0, 1 or 2 subnodes, where (in case of a … Read More

Filed Under: Adobe Interview Questions, Interview Questions, problem Tagged With: Binary Search Tree, Linked List

K’th Largest Element in BST when modification to BST is not allowed

March 19, 2015 by Dhaval Dave

Given a Binary Search Tree (BST) and a positive integer k, find the k’th largest element in the Binary Search Tree.

… Read More

Filed Under: Amazon Interview Question, Flipkart Interview Questions, Interview Questions, Microsoft Interview Questions, problem Tagged With: Binary Search Tree

Common Ancestor in a Binary Tree or Binary Search Tree

October 10, 2014 by Dhaval Dave

We need to find a Least Common Ancestor of Two given nodes in Binary tree.

            [1]
          /    \ 
       [2]      [3]
      /  \      /  \
    [4]  [5]  [9] [10]
    /    /  \ 
  [8]   [6] [7]

say

… Read More

Filed Under: Amazon Interview Question, Flipkart Interview Questions, Interview Questions, Microsoft Interview Questions, problem Tagged With: Binary Search Tree, Binary Tree, tree

Check Binary Tree is Binary Search Tree or not

July 29, 2014 by Dhaval Dave

To search Binary Search Tree
First lets understand characteristics of BST
• The left subtree of a node contains only nodes with keys less than the node’s key.
• The right subtree of a node
… Read More

Filed Under: Interview Questions, problem Tagged With: Binary Search Tree, Binary Tree, BST, tree

Linked List V/S Binary Search Tree

March 19, 2014 by Dhaval Dave

Linked List :

Node(1) -> Node(2) -> Node(3) -> Node(4) -> Node(5) -> Node(6) -> Node(7)
  • In linked list, the items are linked together through a single next pointer.
  • Next Node’s Key Can be larger
… Read More

Filed Under: problem Tagged With: Binary Search Tree, BST, Linked List

Primary Sidebar

Join WeekEnd Online/Offline Batch from 4-April-2020 on How to Crack Coding Interview in Just 10 Weeks : Fees just 20,000 INR

Join WeekEnd Online/Offline Batch from 4-April-2020

WhatsApp us

Secondary Sidebar

Custom Search

  • How I cracked AMAZON
  • LeetCode
  • Adobe
  • Amazon
  • Facebook
  • Microsoft
  • Hacker Earth
  • CSE Interview

Top Rated Questions

Subset Sum Problem Dynamic programming

Sort Stack in place

Maximum sum contiguous subarray of an Array

Serialise Deserialise N-ary Tree

HackeEarth Flipkart’s Drone

SAP Off Campus Hiring_ March 2015 Sample Questions

Find if two rectangles overlap

CodeChef Code SGARDEN

Leetcode: Edit Distance

N teams are participating. each team plays twice with all other teams. Some of them will go to the semi final. Find Minimum and Maximum number of matches that a team has to win to qualify for finals ?

Print all nodes that are at distance k from a leaf node

‘N’ Story Building, with 1,2,3 steps how many ways can a person reach top of building.

Password Predictor

Hackerearth : Counting Subarrays

Given Set of words or A String find whether chain is possible from these words or not

Closed Parentheses checker

Find Percentage of Words matching in Two Strings

Maximum occurred Smallest integer in n ranges

Given a string, find the first character which is non-repetitive

Walmart Labs Interview Experience

Given a sorted array and a number x, find the pair in array whose sum is closest to x

Flipkart Set 1 On Campus with Answers

BFS (Breath First Search)

Interfaces in C++ (Abstract Classes in C++)

Urban Ladder Written Test.

Client Server C program

Find loop in Singly linked list

Binary Tree Isomorphic to each other

Cisco Hiring Event 21st – 22nd Feb 2015

Puzzle : 100 doors in a row Visit and Toggle the door. What state the door will be after nth pass ?

Copyright © 2025 · Genesis Framework · WordPress · Log in