• 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

Stack

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

May 15, 2016 by Dhaval Dave

Given an array of integers, find the nearest smaller number for every element such that the smaller element is on left side.

Examples:

Input:  arr[] = {1, 6, 4, 10, 2, 5}
Output:         {-1, 1, 
… Read More

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

Generic Object Oriented Stack with Template

April 27, 2015 by Dhaval Dave

Generic Stack with OOPS

Here We have implemented a Generic Stack Example with Templates in C++ where we can Push any element into stack.

#include <iostream>
#include <vector>
#include <cstdlib>
#include <string>
#include <stdexcept>
using namespace std;… Read More

Filed Under: Adobe Interview Questions, Flipkart Interview Questions, Interview Questions, problem Tagged With: Stack

Level order traversal in Spiral form

December 21, 2014 by Dhaval Dave

Write a function to print spiral order traversal of a tree or Write function for Tree traversal in Spiral ZigZag form
For below tree, function should print 1, 2, 3, 7, 6, 5, 4.

           [1]
          
… Read More

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

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

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

August 16, 2014 by Dhaval Dave

Question : Get Minimum element in O(1) from Input Numbers or Stack

– With any traditional way we can’t get minimum element in O(1)
– so we need to come up with different data structure.

… Read More

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

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

Doubly linked list

Amazon Interview Experience – SDE Chennai

Maximum occurred Smallest integer in n ranges

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

Edit Distance ( Dynamic Programming )

Find Percentage of Words matching in Two Strings

Check Binary Tree is Binary Search Tree or not

25 horses 5 tracks Find 3 fastest puzzle

Python String and numbers

BlueStone E-commerce Interview Experience

Calculate price of parking from parking start end time prices

SAP Off Campus Hiring_ March 2015 Analytical Aptitude

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

Daughter’s Age VeryGood Puzzle

Find position of the only set bit

Find shortest distances between every pair of vertices ( Dynamic Programming Floyd Warshall Algorithm)

Apriori algorithm C Code Data Mining

Reverse a Linked List in groups of given size

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 ?

Leetcode: Edit Distance

System Design: Designing a LLD for Hotel Booking

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

flattens 2 D linked list to a single sorted link list

FizzBuzz Solution C C++

VMWare Openings

Print Power Set of a Set

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

Microsoft BING Interview Experience

SAP Hiring Off-Campus General Aptitude

Closed Parentheses checker

Copyright © 2026 · Genesis Framework · WordPress · Log in