• 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

Graph

Number of Islands BFS/DFS

April 5, 2018 by Dhaval Dave

example for rejecting a component

Problem Statement:

Given a 2d grid containing either values either 0 or 1 where 1 represents land and 0 represents water. You have to calculate the number of total islands in the given grid. An … Read More

Filed Under: Adobe Interview Questions, Algorithm, Amazon Interview Question, Data Structure, Graph Tagged With: 2d matrix, BFS, DFS

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

February 23, 2018 by Dhaval Dave

Find shortest distances between every pair of vertices in a given edge weighted directed Graph.

Input:
The first line of input contains an integer T denoting the no of test cases . Then T test … Read More

Filed Under: Amazon Interview Question, Graph, Microsoft Interview Questions Tagged With: Dynamic Programming, Graph

Knight Tour Problem (Graph – Breadth First Search)

December 22, 2017 by Dhaval Dave

Knight Tour Problem : Given a chess board of size n x n, initial position of knight and final position of knight. We need to find the minimum number of steps required to reach final … Read More

Filed Under: Algorithm, Amazon Interview Question, Flipkart Interview Questions, Graph, Microsoft Interview Questions Tagged With: algorithm, BFS, Graph

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

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

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

Find the number ABCD such that when multipled by 4 gives DCBA.

strtok()

Generate next palindrome number

Facebook Interview Question : Interleave List

Subset Sum Problem Dynamic programming

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

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

Check Binary Tree is Binary Search Tree or not

Closed Parentheses checker

HackeEarth Flipkart’s Drone

Printing Longest Common Subsequence

Reverse a Linked List in groups of given size

C++ OOPs Part2

Microsoft BING Interview Experience

flattens 2 D linked list to a single sorted link list

Given array of 0’s and 1’s. All 0’s are coming first followed by 1’s. find the position of first 1

Longest Increasing Subsequence

SAP Interview Questions

Spanning Tree

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

Find loop in Singly linked list

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

How Radix sort works

DFS (Depth First Search)

Find position of the only set bit

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

Find if a binary tree is height balanced ?

Copyright © 2025 · Genesis Framework · WordPress · Log in