AlgoMaster Logo

Last Stone Weight II

stones=[2, 7, 4, 1, 8, 1]
0 / 93
algomaster.io
Step:Smashing all stones leaves |pileA - pileB|. Split the stones into two piles as evenly as possible.