Brain-teasers and technical questions that interviewers use to challenge your logic and problem solving skills.
Monday, December 19, 2005
Shuffling a Deck of Cards
Represent a deck of cards in a data structure of your choice. Defend your choice. Write a method that will randomly shuffle the deck of cards. Prove that your shuffle algorithm has a uniform distribution.
1 comment:
man, this is such a geeky blog :P
Post a Comment