• 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

Binary Search

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

November 14, 2014 by Dhaval Dave

Given array of 0’s and 1’s. All 0’s are coming first followed by 1’s. find the position of first 1
Example : 00001111
Output : 4Method 1 : in O(n) we can do it .
… Read More

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

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

August 27, 2014 by Dhaval Dave

Given a matrix containing unique numbers in which all rows and columns are in sorted order.
And You have to search an element output its location row,column number .
If no such element the just
… Read More

Filed Under: Amazon Interview Question, Flipkart Interview Questions, Interview Questions, Microsoft Interview Questions, problem Tagged With: 2d matrix, Binary Search

Find min element in Sorted Rotated Array (With Duplicates)

August 4, 2014 by Dhaval Dave

Problem: Find the minimum element in a sorted and rotated array if duplicates are allowed:
Example: { 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 1, 1, 2}   output: 0
Algorithm:

This problem

… Read More

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

Find min element in Sorted Rotated Array (Without Duplicates)

August 4, 2014 by Dhaval Dave

Problem: Find the minimum element in a sorted and rotated array if duplicates not allowed:
Example: {3, 4, 5, 6, 7, 1, 2} output: 1

Algorithm:
This problem can be easily solved in O(n) time

… Read More

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

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

Facebook Interview Question : Interleave List

Edit Distance ( Dynamic Programming )

Password Predictor

SAP Off Campus Hiring_ March 2015 Analytical Aptitude

Check Binary Tree is Binary Search Tree or not

Find next greater number with same set of digits

Difference between a LinkedList and a Binary Search Tree BST

Urban Ladder Written Test.

Python Dictionaries

Test Cases for Round Function

Find position of the only set bit

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

HackeEarth Flipkart’s Drone

Level order traversal in Spiral form

Given a float number convert it into the string WITHOUT using any inbuilt Function

strtok()

Naurki.com Security Breach

Length of the longest substring without repeating characters

Calculate price of parking from parking start end time prices

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

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

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

Find loop in Singly linked list

Adobe Interview Questions 8 month Exp

The Magic HackerEarth Nirvana solutions Hiring Challenge

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

Convert Decimal to Roman numbers / Romanizer HackerEarth Code

Apriori algorithm C Code Data Mining

Binary Tree Isomorphic to each other

Stock Buy Sell to Maximize Profit

Copyright © 2025 · Genesis Framework · WordPress · Log in