Give a one-line C expression to test whether a number is a power of 2. Now implement it without using loops.
Read Answers(36) | 11,154 Views |
Write a function to print the Fibonacci numbers.
Read Answers(16) | 6,759 Views |
How many miles of road are there in the US
Read Answers(17) | 25,897 Views |
How would you design a clock for a blind person?
Read Answers(14) | 13,395 Views |
How would you design an universal remote control?
Read Answers(16) | 17,264 Views |
How would you design a toaster?
Read Answers(7) | 13,681 Views |
You have a bucket of jelly beans. Some are red, some are blue, and some green. With your eyes closed, pick out 2 of a like color. How many do you have to grab to be sure you have 2 of the same?
Read Answers(23) | 23,859 Views |
Imagine you are standing in front of a mirror, facing it. Raise your left hand. Raise your right hand. Look at your reflection. When you raise your left hand your reflection raises what appears to be his right hand. But when you tilt your head up, your reflection does too, and does not appear to tilt his/her head down. Why is it that the mirror appears to reverse left and right, but not up and down?
Read Answers(25) | 15,355 Views |
How would you locate a book in a big library if there is no cataloging system and no librarian to help you?
Read Answers(16) | 16,694 Views |
How many points are there on the globe where by walking one mile south, one mile east and one mile north you reach the place where you started.
Read Answers(18) | 11,880 Views |