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.
It was written 9 years ago.
I fear for you.
God I'm so dumb..
counter is useless, a simple input of (1011, 11) breaks your solution
I know the input string is rather short, but I think it can be easily done with less iteration with the use of dict or Counter. This would probably reduce algorithm complexity.
any
with a generator instead of a list (just remove the brackets) would be both efficient (returning True once a triple-double is found) AND easy to read. (expect for the str thing which could be done before)out of 205 test cases only the following:-
test.assert_equals(declare_winner(Fighter("Jerry", 30, 3), Fighter("Harald", 20, 5), "Jerry"), "Harald")
test case fails
Can anyone help , not getting any clue whats going wrong
Thats cool :-)