• 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

problem

Find two non repeating elements in an array of repeating elements

December 4, 2014 by Dhaval Dave

Given an array in which all numbers except two are repeated once.
(i.e. we have 2n+2 numbers and n numbers are occurring twice and remaining two have occurred once).
Find those two numbers in the
… Read More

Filed Under: Amazon Interview Question, problem Tagged With: Array, Bit Arithmeticm

HackeEarth Flipkart’s Drone

November 24, 2014 by Dhaval Dave

HackeEarth Flipkart’s Drone : After listening to the news of testing of Delivery Drone
But this was only possible if two of the shipping addresses had “V1-type” road connecting them(V1-type roads are the fastest in
… Read More

Filed Under: Flipkart Interview Questions, Hacker Earth Questions, Interview Questions, problem Tagged With: Array

Sort Stack in place

November 23, 2014 by Dhaval Dave

Sort Stack in place
Question is to sort a Stack in place without using extra Stack or other Data Structure.Answer :
Basic solution which comes in mind is to pop all element and sort and push into Stack again.
… Read More

Filed Under: Amazon Interview Question, Data Structure, problem

Python Array String

November 18, 2014 by Dhaval Dave

Arrays String

As we declare string, we can use it as Array of String.
string = ‘GoHired’
print string[0]
>> G

PS :  To show OutPut we have used  >>  sign
string = ‘GoHired’
print
… Read More

Filed Under: problem, Uncategorized

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

November 17, 2014 by Dhaval Dave

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

Examples:

Input: arr[] = {10, 22, 28, 29, 32, 40}, x = 54
Output: 22 and

… Read More

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

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

Templates in C++

November 5, 2014 by Dhaval Dave

A template is a blueprint or formula for creating a generic class or a function. The library containers like iterators and algorithms are examples of generic programming and have been developed using template concept.

example

… Read More

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

Interfaces in C++ (Abstract Classes in C++)

November 5, 2014 by Dhaval Dave

Capabilities of a C++ class without committing to a particular implementation of that class.
The C++ interfaces are implemented using abstract classes

A class is made abstract by declaring at least one of its functions

… Read More

Filed Under: problem Tagged With: c

C++ OOPs Part2

November 5, 2014 by Dhaval Dave

Polymorphism & Overloading

Polymorphism 

Polymorphism occurs when there is a hierarchy of classes and they are related by inheritance.

C++ polymorphism means that a call to a member function will cause a different function to

… Read More

Filed Under: problem Tagged With: c

C++ OOPs Part1

November 5, 2014 by Dhaval Dave

ABSTRACTION , INHERITANCE , ENCAPSULATION

ABSTRACTION :  

Data abstraction refers to, providing only essential information to the outside world and hiding their background details
Any C++ program where you implement a class with public

… Read More

Filed Under: problem Tagged With: c

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

N Petrol bunks or City arranged in circle. You have Fuel and distance between petrol bunks. Is it possible to find starting point so that we can travel all Petrol Bunks

Trie Dictionary

Given a string, find the first character which is non-repetitive

Common Ancestor in a Binary Tree or Binary Search Tree

TicTacToe Game As Asked in Flipkart

BlueStone E-commerce Interview Experience

Leetcode: Merge Intervals

Printing each word reverse in string

Python String and numbers

C Program for TAIL command of UNIX

Find position of the only set bit

Reliance Jio Software Developer Interview Experience

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

Circular Linked List

Maximum path sum between two leaves

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

Longest Increasing Subsequence

Binary Tree in Java

LeetCode: Container With Most Water

Puzzle : 100 doors in a row Visit and Toggle the door. What state the door will be after nth pass ?

Convert number to words java

Add Sub Multiply very large number stored as string

VMWare SDEII Interview

Difference between a LinkedList and a Binary Search Tree BST

25 horses 5 tracks Find 3 fastest puzzle

How strtok() Works

LeetCode : Word Search

CodeChef’ RRCOPY

Find min element in Sorted Rotated Array (With Duplicates)

Urban Ladder Written Test.

Copyright © 2025 · Genesis Framework · WordPress · Log in