Light Mode
Dark Mode
Please add check for [9

Please add check for [9,9,7,6,5]. Should be 0, but the algorithm of pushing back the difference between 2 largest elements, proposed by moozii, fails and returns 4.

Created: July 13, 2012, 5:27 a.m.
Updated: Sept. 30, 2013, 1:46 p.m.
0
7
User avatar
Alar