3 ms·
The question must be precisely worded. "Write a function to shuffle a deck of cards" is woefully ambiguous. Provide the function header and avoid misunderstandi
by dkarl 16y ago
The question must be precisely worded. "Write a function to shuffle a deck of cards" is woefully ambiguous. Provide the function header and avoid misunderstandings, which are all too common.
Nah... you need to know if the candidate can spot underspecified problems and ask for clarification.
- ams6110 16y agoI'd argue that ability is more important than if he can come up with a good card-shuffling or string-reversing algorithm on the spot. Algorithms can be looked up easily if you're having a mental blocj. The ability to know that you need more information is a bit more elusive.