All Puzzles

Implement the function boolean isPalindrome (int n); Which will return true if the bitwise representation of the integer is a palindrome and false otherwise.
View SolutionSubmit Solution 3959 views
 1 answers
 1 votes

Tricky question, be attentive
There are four airplanes flying in four different directions. Each of the plane navigates a straight line at a constant speed. Please keep in mind that none of the two planes are flying parallel with each other. They began flying at the same time long time ago. Sometimes, even a collision takes place but the strong build, makes the planes continue with the journey. But even the sturdy built can only survive two collisions and after that the plane will crash.Out of the six possible collisions, five have already taken place (do note that the collisions did not involve more than two planes at one time). Two planes have already crashed. What will be the fate of the remaining two planes?
View SolutionSubmit Solution 3581 views
 1 answers
 0 votes

A bridge will collapse in 17 minutes.
4 people want to cross it before it will collapse. It is a dark night and there is only one torch between them.
Only two people can cross at a time.
“A” takes a minute to cross.
“B” takes 2 minutes.
“C” takes 5
and “D” takes 10 minutesHow do they all cross before the bridge collapses?
View SolutionSubmit Solution 17026 views
 2 answers
 3 votes

Albert and Bernard just became friends with Cheryl, and they want to know when her birthday is. Cheryl gives them a list of 10 possible dates.
May 15 16 19
June 17 18
July 14 16
August 14 15 17
Cheryl then tells Albert and Bernard separately the month and the day of her birthday, respectively.
Albert: I don’t know when Cheryl’s birthday is, but I know that Bernard does not know, too.
Bernard: At first, I didn’t know when Cheryl’s birthday is, but I know now.
Albert: Then I also know when Cheryl’s birthday is.
When is Cheryl’s birthday?
View SolutionSubmit Solution 2784 views
 1 answers
 0 votes