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.
#All kata's shuold have a specific method. Better practice for people who are lower kyu anyway.
Your complaint : null;
thanks, although I still don't understand why I pass different amount of test for each attempt
You can inspect inputs by printing them: https://docs.codewars.com/training/troubleshooting#print-input
Everytime I attempt the random arrays I get different results,sometimes I pass more sometimes I pass less.It would be better if I could see those random arrays instead of just telling me 'Expected: 256, instead got: 215'.
Hello there!
Did you return the value or print it to the screen?
Once I spent a good 5 minutes figuring out what the problem might be, when in a similar situation as you, then I realised I didn't actually return the value from the function, just used print.
Cheers!
We should be allowed to solve this however way we want.The code I wrote worked fine when I tested on my system but on this kata it forces you to use a specific method.