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) | 8,632 Views |
Write a function to print the Fibonacci numbers.
Read Answers(16) | 5,407 Views |
How many miles of road are there in the US
Read Answers(17) | 19,931 Views |
How would you design a clock for a blind person?
Read Answers(14) | 9,922 Views |
How would you design an universal remote control?
Read Answers(16) | 14,500 Views |
How would you design a toaster?
Read Answers(7) | 11,521 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) | 18,454 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) | 9,581 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) | 13,367 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) | 7,245 Views |