4 ms·
Its a problem that's trivial if you are allowed to allocate an array/list that's the same size as the input but tricky if you have to do the operation in place
by benrjackson 4y ago
Its a problem that's trivial if you are allowed to allocate an array/list that's the same size as the input but tricky if you have to do the operation in place (unless you already know the fisher yates algorithm).
There's probably a bunch of other examples of this kind, (easy out of place, tricky in place) but non come to mind atm.
- ProjectArcturis 4y agoWhy would the developers be constrained this way when decks are like 60 cards long? Surely any app can spare that much memory.