There are 100 prisoners on an island. Starring from Day 1, a guard will play the following game with them. On the n th day, a random prisoner will be brought into a room, which contains a switch that is either on or off. After he left the room, the guard will then ask the prisoner if everybody has been to the room. He can answer either "Yes" or "I dun know". If he answered "yes" and he is correct, everyone is free' otherwise everyone dies. If he answered "I dun know", the game continues: a prisoner will be choosen at random on (n+1)-th day and so on. Now these 100 prisoners are free to meet and discuss a strategy on the night of 0th day. Afterwards they will not be able to see anyone else at all. No other communcation is possible except the binary switch in the room. Is there a sure-fire strategy to free all of them?
Interns Interview Questions
248,183 interns interview questions shared by candidates
Where are you from ?
given a string, return the opposite of it, without changing the inner order of any word. for instance: " abc" -> "abc " " good morning" -> "morning good "
Imagine a cube 1x1x1, then imagine that you form a cube of 10x10x10 with all these little cubes of 1x1x1. How many cubes do you have to remove to get rid of the surface of cubes.
Write a program in C to add two numbers without using any maths operator (+, -, /, *).
WHAT IS your proficiency level with excel?
Simply questions based on experience and my resume.
Write a program that sees if two binary trees are equal.
Write a program that reverses the words in a sentence.
Name a project you are proud of. Talk about a group project and your role in it. TECHNICAL QUESTION: Find the max sum of consecutive integers in an array.
Viewing 291 - 300 interview questions