AlgoMaster Logo

Last Stone Weight II

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