Technical Interview

Home
Added Recently
Data Structures
Puzzles
Google & Microsoft
C/C++ Questions
Java Interview Questions
Quantitative Problems
Algorithms
Featured Articles
Amazon Interview Question
Compaq Interview Question
Technical Interview
Interview Process
Introduction Questions
Object Oriented
Google Pages
Fundamental Questions
Resume Tips
Links
Contact Us
Submit Question/Answer
Goolge Pages: Google Tools for Webmasters –Discover the Power that Lies Hidden in Your Website.Thanks to M. Stockman  who provided us with the valuable information.




Google and Microsoft Questions

These are some questions that are asked in Goolge and Microsoft interviews.  Google and Microsoft are still asking programming and puzzles questions, so do not forget to check the other sections. More Questions @ Google Interview Questions


  • Data Structures Interview Question: Classify the Hashing Functions based on the various methods by ...

  • Data Structures Interview Question: What are the major data structures used in the following areas : RDBMS...


  • Algorithms Interview Question: Given two numbers m and n, write a method to return the first number r that is divisible by both....


  • Tree Interview Question: Write a C program to delete a tree (i.e, free up its nodes)

  • Tree Interview Question: Write a C program to determine the number of elements (or size) in a tree. 


  • Analytical Questions: 5 houses in 5 colors: This puzzle was apparently written by Einstein in the last century. He said that 98% of the people in the world...

  • Analytical Questions: 5 Jars of pills: You have 5 jars of pills. Each pill weighs 10 grams...


  • Analytical Questions: One gold bar: You have someone working for you for seven days and you have one gold bar to pay...


  • Puzzles: Life or Death? The Emperor's Proposition: you are a prisoner sentenced to death. The Emperor offers you...


  • Puzzles:Birthday Line: At a movie theater, the manager announces that they will give a free ticket...

  • Puzzles:Russian Roulette: You are in a game of Russian Roulette with a revolver that has 3...




  • JAVA Data Structures: Teddy Bears Puzzle: the game starts when I give you some bears. You can then give back some bears...

  • Microsoft: Who is taller: 500 men are arranged in an array of 10 rows and 50 columns according to their heights...


  • Google: arrangement of blocks: You are given N blocks of height 1…N. In how many ways can you arrange these blocks...





There are four people who want to cross a bridge; they all begin on the same side. You have 17 minutes to get them all across to the other side. It is night, and they have one flashlight. A maximum of two people can cross the bridge at one time. Any party that crosses, either one or two people, must have the flashlight with them. The flashlight must be walked back and forth; it cannot be thrown, for example. Person 1 takes 1 minute to cross the bridge, person 2 takes 2 minutes, person 3 takes 5 minutes, and person 4 takes 10 minutes. A pair must walk together at the rate of the slower person’s pace. For example, if person 1 and person 4 walk across first, 10 minutes have elapsed when they get to the other side of the bridge. If person 4 returns the flashlight, a total of 20 minutes have passed and you have failed the mission.


You have to get from point A to point B. You don’t know if you can get there. What would you do?

 

Solution

 

Imagine you have a closet full of shirts. It’s very hard to find a shirt. So what can you

do to organize your shirts for easy retrieval?

 

Solution 

 

What method would you use to look up a word in a dictionary?
 

Solution



Every man in a village of 100 married couples has cheated on his wife. Every wife in the village instantly knows when a man other than her husband has cheated, but does not know when her own husband has. The village has a law that does not allow for adultery. Any wife who can prove that her husband is unfaithful must kill him that very day. The women of the village would never disobey this law. One day the queen of the village visits, and announces that at least one husband has been unfaithful. What happens?

Solution

 

 

Previous Page    Next Page