• 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

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 binary search tree) 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.

Search


As long as the tree is balanced, the searchpath to each item is a lot shorter than that in a linked list

Sort

Main difference is that BST can be sorted easily, and we can say its sorted already.

Insertion/Removal

Linked lists preserve insertion order and inserting is less expensive , while in BST insertion is expensive.
same in case for Removal, Removing a node from LinkedList is easy if you have previous node info, to be delated node info.
But in BST it expensive as again we need to order the BST.

Linked List

Item(1) -> Item(2) -> Item(3) -> Item(4) -> Item(5) -> Item(6) -> Item(7)

Binary tree

                 RootNode(4)
                /          \
             Node(2)        Node(6)
           /      \        /       \
        Node(1)  Node(3)  Node(5)   Node(7)

Similar Articles

Filed Under: Adobe Interview Questions, Interview Questions, problem Tagged With: Binary Search Tree, 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

Find if a binary tree is height balanced ?

Maximum size of square sub matrix with all 1’s in a binary matrix

Level order traversal in Spiral form

Linked List V/S Binary Search Tree

Stock Buy Sell to Maximize Profit

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

flattens 2 D linked list to a single sorted link list

Fibonacci Hashing & Fastest Hashtable

Rectangular chocolate bar Create at least one piece which consists of exactly nTiles tiles

HackeEarth Flipkart’s Drone

Generate largest number arranging a no. of given non negative integer numbers

TicTacToe Game As Asked in Flipkart

Serialise Deserialise N-ary Tree

BFS (Breath First Search)

Best Java Book | Top Java Programming Book for Beginners

Check a String is SUBSEQUENCE of another String Find Minimum length for that ( DNA Matching )

Adobe Interview Questions 8 month Exp

Find min element in Sorted Rotated Array (Without Duplicates)

DFS (Depth First Search)

Daughter’s Age VeryGood Puzzle

Binary Tree in Java

Find loop in Singly linked list

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

Code Chef PRGIFT Solution

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

Count Possible Decodings of a given Digit Sequence

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

Sort an array according to the order defined by another array

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

Implement LRU Cache

Copyright © 2026 · Genesis Framework · WordPress · Log in