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.
not exactly. i think if you sort the list that could help. have to try it out though
I can't solve too.
Possible solution is (sum - int).
But I'm not sure.
Array is not sorted
Perhaps "Memoization" and "Design Patterns" are actually used.
should i use other data structure or algorythm to solve that in python?
It will only return once, just
0
.You should never write this. Make sure you only return once.
thank for feedback.. but if i return then how i can i loop through .
just an example
def trial:
for num in range(11):
return num
then the function will break because of returing everytime...
because you're printing instead of returning
0 ==> 0
2 ==> 5
3 ==> 5
12 ==> 15
21 ==> 25
30 ==> 30
-2 ==> 0
-5 ==> -5
Input: 1: None should equal 5
this is my kata on codewar...
output is okay ... same to same
why i am still getting this error