• 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

25 horses 5 tracks Find 3 fastest puzzle

Level order traversal in Spiral form

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

Apriori algorithm C Code Data Mining

System Design: Designing a LLD for Hotel Booking

Amazon Interview Experience – SDE Chennai

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

HackeEarth Flipkart’s Drone

Test Cases for Round Function

Get K Max and Delete K Max in stream of incoming integers

Sort Stack in place

Given a float number convert it into the string WITHOUT using any inbuilt Function

Practo Hiring Experience

Number of Islands BFS/DFS

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

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

Mirror of Tree

Find min element in Sorted Rotated Array (Without Duplicates)

Find two non repeating elements in an array of repeating elements

Python List

VMWare Openings

Find the element that appears once others appears thrice

In Given LinkedList Divide LL in N Sub parts and delete first K nodes of each part

Find the kth number with prime factors 3, 5 and 7

SAP Interview Questions

Code Chef PRGIFT Solution

Closed Parentheses checker

Find an index i such that Arr [i] = i in array of n distinct integers sorted in ascending order.

Implement a generic binary search algorithm for Integer Double String etc

Flipkart Set 1 On Campus with Answers

Copyright © 2025 · Genesis Framework · WordPress · Log in