• 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

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 List

November 19, 2014 by Dhaval Dave

The list is a most versatile datatype available in Python which can be written as a list of comma-separated values (items) between square brackets. Good thing about a list is that items in a list

… Read More

Filed Under: Interview Questions Tagged With: Array, python

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

Python String and numbers

November 18, 2014 by Dhaval Dave

When working with data, we need ways to store it in variables so we can manipulate it.

three of the most common data types used in programming: numbers, strings and booleans. We assigned those data

… Read More

Filed Under: Interview Questions Tagged With: Array, string

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 8
  • Page 9
  • Page 10
  • Page 11
  • Page 12
  • …
  • 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

CodeChef’ RRCOPY

Leetcode: Edit Distance

VMWare SDEII Interview

Number of Islands BFS/DFS

1014 Practice Question of New GRE – Princeton

Find next greater number with same set of digits

In Given LinkedList Divide LL in N Sub parts and delete first K nodes of each part

Difference between a LinkedList and a Binary Search Tree BST

flattens 2 D linked list to a single sorted link list

Knight Tour Problem (Graph – Breadth First Search)

Password Predictor

Memory Efficient LinkedList

Maximum of all subarrays of size k

Singly linked list

N teams are participating. each team plays twice with all other teams. Some of them will go to the semi final. Find Minimum and Maximum number of matches that a team has to win to qualify for finals ?

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

Hackerearth : Counting Subarrays

Connect n ropes with minimum cost

Circular Linked List

SAP Off Campus Hiring_ March 2015 Analytical Aptitude

Mirror of Tree

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

Test Cases for Round Function

System Design: Designing a LLD for Hotel Booking

Convert number to words java

HackeEarth Flipkart’s Drone

Serialise Deserialise N-ary Tree

FizzBuzz Solution C C++

Trapping Rain Water

Urban Ladder Written Test.

Copyright © 2025 · Genesis Framework · WordPress · Log in