• 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

Facebook Interview Question : Interleave List

May 14, 2018 by Dhaval Dave

Interleave List

Interleave List If input = [[1,2,3], [9, 0], [5], [-4,-5,-2,-3,-1]] then output = [1,9,5,-4,2,0,-5,3,-2,-3,-1];
Asked in Facebook F2F… Read More

Filed Under: Algorithm, Data Structure, Facebook Tagged With: 2d matrix, Array, Linked List

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

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

December 14, 2014 by Dhaval Dave

Given LinkedList and K=2, N=41->2->3->4->5->6->7->8->9

so Partitioned LinkedList will be

1->2->3->4->5->6->7->8->9

Now delete first K nodes from each subpart and return

… Read More

Filed Under: Amazon Interview Question, Flipkart Interview Questions, Interview Questions, Microsoft Interview Questions, problem Tagged With: Linked List

Reverse a Linked List in groups of given size

October 9, 2014 by Dhaval Dave

Given a linked list, write a function to reverse every k nodes (where k is an input to the function).
Example:
Inputs: 1->2->3->4->5->6->7->8->NULL and k = 3
Output: 3->2->1->6->5->4->8->7->NULL.

Solution : Reverse a LinkedList keeping

… Read More

Filed Under: Adobe Interview Questions, Amazon Interview Question, Interview Questions, Microsoft Interview Questions, problem Tagged With: Linked List

Implement LRU Cache

August 27, 2014 by Dhaval Dave

Generally Interviewer can ask you simply to implement LRU cache, first explain which data structure you will use and why.
Its well known coding question being asked by all Tech giants like Amazon , Flipkart,
… Read More

Filed Under: Adobe Interview Questions, Amazon Interview Question, Flipkart Interview Questions, Interview Questions, Microsoft Interview Questions, problem Tagged With: Array, Hashmap, Linked List, Queue, Stack

Memory Efficient LinkedList

August 24, 2014 by Dhaval Dave

Memory efficient linked list is also called XOR Linked List.
To use lesser memory in doubly link list, such data structure is used.

An ordinary doubly linked list stores addresses of the previous and next

… Read More

Filed Under: problem Tagged With: Linked List

flattens 2 D linked list to a single sorted link list

March 27, 2014 by Dhaval Dave

Write a function flatten() which flattens this linked list with each node down sorted link list to a single link list with all the elements in sorted order.

We have given Two methods in O(n^2)

… Read More

Filed Under: Amazon Interview Question, Flipkart Interview Questions, Microsoft Interview Questions, problem Tagged With: Linked List, Merge Sort

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

March 25, 2014 by Dhaval Dave

Get K Max and Delete K Max in stream of Incoming Integers

Solution 1 : Using Min Heap
Algorithm :

1) Keep a Min & Max Heap of K size
2) Store first K elements 
… Read More

Filed Under: Adobe Interview Questions, Amazon Interview Question, Interview Questions, Microsoft Interview Questions, problem Tagged With: Linked List, Max Heap, Min Heap

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

Doubly linked list

February 26, 2014 by Dhaval Dave

Doubly Linked List

In computer science, a doubly-linked list is a linked data structure that consists of a set of sequentially linked records called nodes. Each node contains two fields, called links, that are references to the previous

… Read More

Filed Under: problem Tagged With: Linked List

  • Page 1
  • Page 2
  • Next Page »

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

Maximum occurred Smallest integer in n ranges

Walmart Labs Interview Experience

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

Hackerearth : Counting Subarrays

Microsoft BING Interview Experience

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

LeetCode: Container With Most Water

Number of Islands BFS/DFS

Generate next palindrome number

Stickler thief

Printing intermediate Integers between one element & next element of array

Adobe Interview Questions 8 month Exp

CodeChef’ RRCOPY

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

Generic Object Oriented Stack with Template

Print Power Set of a Set

Sequence Finder Dynamic Programming

Mirror of Tree

Binary Tree in Java

Practo Hiring Experience

Naurki.com Security Breach

Find the element that appears once others appears thrice

Check Binary Tree is Binary Search Tree or not

Count number of ways to reach a given score in a game

Daughter’s Age VeryGood Puzzle

Find Nearest Minimum number in left side in O(n)

Find loop in Singly linked list

Singly linked list

Introduction To Number Theory ( Part 1 )

Find min element in Sorted Rotated Array (With Duplicates)

Copyright © 2025 · Genesis Framework · WordPress · Log in