3 ms·
Yes, you're right. I misremembered the problem and thought a greedy algorithm would work in that case. It still seems to me that bowl-stacking is solved by sor
by Conlectus 5y ago
Yes, you're right. I misremembered the problem and thought a greedy algorithm would work in that case.
It still seems to me that bowl-stacking is solved by sorting alone, though, which is of course much simpler.
- thaumasiotes 5y agoI tend to agree as to bowl-stacking.