Wonderul Code!
Amazingly fast and accurate algo to generate random number in O(1) time.
int getRandomNumber(void) {
// We arrived at this number by rolling a fair dice.
return 4;
}
Oh ya, I have one more. A very famous interview question, in C, is to implement sizeof. Its as zimble as following:
#define MY_SIZEOF sizeof
Amazing! Borrowed thoughts though. :-)
int getRandomNumber(void) {
// We arrived at this number by rolling a fair dice.
return 4;
}
Oh ya, I have one more. A very famous interview question, in C, is to implement sizeof. Its as zimble as following:
#define MY_SIZEOF sizeof
Amazing! Borrowed thoughts though. :-)
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home