2 ms·
> if your solution involved generating all permutations of a sequence, and you didn't remember how to do that efficiently, I would let you make up a black box f
by Infinitesimus 7y ago
> if your solution involved generating all permutations of a sequence, and you didn't remember how to do that efficiently, I would let you make up a black box function that just does it
But sometimes, the interview question is generating all the permutations :(
- munchbunny 7y agoTrue... but that does mean they're not expecting that you can remember the algorithm. :)