• 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

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 or samller then previous Node.
  • Not Sorted
  • Time Complexity of Search :O(n) Insert : O(1) Delete : O(1) {if you have use optimized method }


Binary Search Tree:

           [4]
          /   \
       [2]     [6]
      /  \    /   \
    [1]  [3] [5]   [7]
  • In a binary tree, each node can have 0, 1 or 2 sub nodes.
  • The key of the left node is lesser than the key of the node and the key of the right node is more than the node
  • Sorted
  • Time Complexity of Search : O(log(n)) Insert : O(log(n)) Delete : O(log(n))
References:
http://bigocheatsheet.com/

Similar Articles

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

Reader Interactions

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

SAP Interview Questions

TicTacToe Game As Asked in Flipkart

The greedy coins game Dynamic Programming

SAP Off Campus Hiring_ March 2015 Computer Skills

SAP Off Campus Hiring_ March 2015 Verbal Skills

Find if a binary tree is height balanced ?

Check Binary Tree is Binary Search Tree or not

Adobe Interview Questions 8 month Exp

write a c program that given a set a of n numbers and another number x determines whether or not there exist two elements in s whose sum is exactly x

Reversal of LinkedList

Trapping Rain Water

Singly linked list

Check if an array has duplicate numbers in O(n) time and O(1) space

Doubly linked list

Memory Efficient LinkedList

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

Get Minimum element in O(1) from input numbers or Stack

Generate next palindrome number

Top 10 Interviews Techniqes for Campus Interview in IIT NIT BITS for MTech

Find next greater number with same set of digits

building with N steps, we can take 1,2,3 steps calculate number of ways to reach at top of building

BFS (Breath First Search)

LeetCode : Word Search

simple sql injection

Spanning Tree

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

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

Diagonal Traversal of Binary Tree

Coin Collection Dynamic Programming

Urban Ladder Written Test.

Copyright © 2026 · Genesis Framework · WordPress · Log in