In reviewing others' solutions, I noticed their code would fail on input of a 'bad' triangle, depending on the input order, but seems to have passed. Input example func(2,2,5) == [0,0,0] is tested, but what about func(5,2,2) == [0,0,0]. Should it be assumed the input is sorted, though this is not stated. So I think the tests need to be corrected.
(if there is another way to inform the authors, please let me know ;)
Created at: 2015/08/08 10:25; Updated at: 2015/08/08 18:28