Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
thanks for your tip and i fixed the problem, It's really a big chanllege for me.I found my thinking almost the same with the best solution, but his code is much more simple and clean than mine. ^_^
My solution can't pass the last testcase and I don't know what's going wrong there??
More complicated tests
[('a', 3), ('a', 3), ('a', 31), ('a', 31), ('ab', -1), ('ac', 4), ('b', 1), ('bc', 1), ('bc', -1)]
✘ Sorry :( : '68a+b-ab+4ac' should equal '4a+b-ab+4ac'
yes,the order of numbers is something I miss. That is my fault. thanks for your advise.
[50,25,25] won't work.