• 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

Dhaval Dave

Stock Buy Sell to Maximize Profit

April 18, 2015 by Dhaval Dave

Stock Price on each day is given in an array.
Example : [ 10, 12, 7, 5, 9, 15, 13, 18 ] Find the max profit that you can make by buying and selling in … Read More

Filed Under: Amazon Interview Question, Hacker Earth Questions, Interview Questions, Microsoft Interview Questions, problem Tagged With: Array

Maximum difference between two elements s.t larger element appears after the smaller number

April 15, 2015 by Dhaval Dave

Find maximum profit if you can buy & sell share just once.

Given an array of integers, find out the difference between any two elements such that larger element appears after the smaller number.

Examples: … Read More

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

Trie Dictionary

April 14, 2015 by Dhaval Dave

tries

Trie also called prefix tree (as they can be searched by prefixes).
The term trie comes from retrieval.
In the example shown, keys are listed in the nodes and values below them. Each … Read More

Filed Under: Amazon Interview Question, Interview Questions, Microsoft Interview Questions, problem Tagged With: tree, Trie

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

April 13, 2015 by Dhaval Dave

A building has n steps. A person can take 1,2 or 3 steps. In how many ways can a person reach top of building.

In order to build logic, lets think from first step
If … Read More

Filed Under: Adobe Interview Questions, Amazon Interview Question, Microsoft Interview Questions, problem Tagged With: Dynamic Programming, Mathematical, Recursion

How strtok() Works

April 13, 2015 by Dhaval Dave

strtok() : Split string into tokens
Syntax :

char * strtok ( char * str, const char * delimiters );

Parameters
str C string to truncate.Notice that this string is modified by being broken into … Read More

Filed Under: Adobe Interview Questions, problem Tagged With: c, string

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

April 13, 2015 by Dhaval Dave

Campus Interview Questions

Couple of years ago when me and my friends appeared for campus interviews in IITs, NITs and BITs we faced many challenging interview questions like N petrol bunks arranged in a city, Sort Stack … Read More

Filed Under: Adobe Interview Questions, Amazon Interview Question, Flipkart Interview Questions, Hacker Earth Questions, Interview Experience, Microsoft Interview Questions

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

Binary Tree in Java

April 9, 2015 by Dhaval Dave

How to write Binary Search Tree Code in Java with proper class structure and methods.

Here is the implementation of Binary Search Tree in Java.
Class Structure, Get Set Methods, Binary Tree Operation, Pre-Post-InOrder code … Read More

Filed Under: Interview Questions, problem Tagged With: Java

K’th Largest Element in BST when modification to BST is not allowed

March 19, 2015 by Dhaval Dave

Given a Binary Search Tree (BST) and a positive integer k, find the k’th largest element in the Binary Search Tree.

… Read More

Filed Under: Amazon Interview Question, Flipkart Interview Questions, Interview Questions, Microsoft Interview Questions, problem Tagged With: Binary Search Tree

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

March 16, 2015 by Dhaval Dave

Consider a game where a player can score 3 or 5 or 10 points in a move. Given a total score n, find number of ways to reach the given score.Examples:
Input: n = 20
… Read More

Filed Under: Amazon Interview Question, Flipkart Interview Questions, Interview Questions, problem Tagged With: Dynamic Programming, Recursion

  • « Previous Page
  • Page 1
  • …
  • Page 4
  • Page 5
  • Page 6
  • Page 7
  • Page 8
  • …
  • Page 17
  • 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

Amazon Interview On-Campus For Internship – 1

CodeChef’ RRCOPY

LeetCode: Binary Tree Maximum Path Sum

Knight Tour Problem (Graph – Breadth First Search)

Leetcode: Merge Intervals

Find if a binary tree is height balanced ?

Print Power Set of a Set

Doubly linked list

Closed Parentheses checker

Connect n ropes with minimum cost

Printing intermediate Integers between one element & next element of array

LeetCode : Word Search

Walmart Labs Interview Experience

Find position of the only set bit

System Design: Designing a LLD for Hotel Booking

Python String and numbers

Printing Longest Common Subsequence

Inorder and Preorder traversals of a Binary Tree given. Output the Postorder traversal of it.

There are N nuts and N bolts, u have to find all the pairs of nuts and bolts in minimum no. of iteration

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

Search element in a matrix with all rows and columns in sorted order

Circular Linked List

VMWare Openings

Find and print longest consecutive number sequence in a given sequence in O(n)

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

Binary Tree in Java

Generic Object Oriented Stack with Template

BFS (Breath First Search)

Python Array String

Trapping Rain Water

Copyright © 2025 · Genesis Framework · WordPress · Log in