• 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

1014 Practice Question of New GRE – Princeton

October 17, 2014 by Dhaval Dave

To prepare GRE from scratch first of all you need to clear all the fundamentals. And in beginning one should go with Easy question. So the first step to wards GRE is to solve this
… Read More

Filed Under: problem Tagged With: GRE

Common Ancestor in a Binary Tree or Binary Search Tree

October 10, 2014 by Dhaval Dave

We need to find a Least Common Ancestor of Two given nodes in Binary tree.

            [1]
          /    \ 
       [2]      [3]
      /  \      /  \
    [4]  [5]  [9] [10]
    /    /  \ 
  [8]   [6] [7]

say

… Read More

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

Password Predictor

October 9, 2014 by Dhaval Dave

Danny has a possible list of passwords of Manny’s facebook account. All passwords length is odd. But Danny knows that Manny is a big fan of palindromes. So, his password and reverse of his password
… Read More

Filed Under: Adobe Interview Questions, Amazon Interview Question, Hacker Earth Questions, Interview Questions, problem Tagged With: string

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

October 9, 2014 by Dhaval Dave

Given a Binary Tree and a positive integer k, print all nodes that are distance k from a leaf node.

Here the meaning of distance k from a leaf means k levels higher than a

… Read More

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

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

Advanced SQL Injection

October 4, 2014 by Dhaval Dave

STEP 1) Find Websites from Google with following code

First Try to find out which websites may be Hackable from SQL Injection.
Website which has
.aspx?id=1 
.php?category=1
.php?cat=2
.php?id=5426(any id)


may not so immune to

… Read More

Filed Under: problem Tagged With: Hacking

Generate next palindrome number

September 17, 2014 by Dhaval Dave

Several Companies like MS, Amazon and Flipkart has started asking this question to Generate next palindrome number.

Say K is given, Generate N such that N is palindrome and N > K.

Logic 1)  Create

… Read More

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

Flipkart SDET Interview Experience

September 11, 2014 by Dhaval Dave

I have recently appeared for Flipkart Interview for SDET-1 position
Sharing my Interview experience.

There were Total 5 rounds
Round 1 ) Telephonic Round
I was asked two questions
Q1) Find Pythagoras triplet in array

… Read More

Filed Under: Flipkart Interview Questions, Interview Experience

How Radix sort works

September 4, 2014 by Dhaval Dave

Radix sort is simple and unique sorting method.
It sorts number with LSD and MSD ( Lease Significant Digit to Most Significant Digit)

Radix Sort puts the elements in order by comparing the digits of

… Read More

Filed Under: Interview Questions, problem Tagged With: Sorting

Max Sum in circularly situated Values

September 1, 2014 by Dhaval Dave

This question was asked first in FACEBOOK On Campus for Internship.

There are N trees in a circle. Each tree has a fruit value associated with it.
A bird can sit on a tree for
… Read More

Filed Under: Interview Questions, problem Tagged With: Array

  • « Previous Page
  • Page 1
  • …
  • Page 9
  • Page 10
  • Page 11
  • Page 12
  • Page 13
  • …
  • 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

Maximum occurred Smallest integer in n ranges

Sort Stack in place

Trie Dictionary

Maximum of all subarrays of size k

Serialise Deserialise N-ary Tree

Handle duplicates in Binary Search Tree

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

Circular Linked List

Find if a binary tree is height balanced ?

Facebook Interview Question : Interleave List

The Magic HackerEarth Nirvana solutions Hiring Challenge

Naurki.com Security Breach

LeetCode: Binary Tree Maximum Path Sum

Python String and numbers

Add Sub Multiply very large number stored as string

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

Flipkart Set 1 On Campus with Answers

25 horses 5 tracks Find 3 fastest puzzle

System Design: Designing a LLD for Hotel Booking

Trapping Rain Water

C Program for TAIL command of UNIX

Printing Longest Common Subsequence

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

Maximum sum contiguous subarray of an Array

Binary Tree in Java

robot standing at first cell of an M*N matrix. It can move only in two directions, right and down. In how many ways, it can reach to the last cell i.e. (M, N) Code it

Wrong Directions given find minimum moves so that he can reach to the destination

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

Convert number to words java

Implement a generic binary search algorithm for Integer Double String etc

Copyright © 2025 · Genesis Framework · WordPress · Log in