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.
Approved at 7 kyu
replaced the HTML table with Markdown
Don't forget that the fields are not under attack if there's a figure between them and the other figure.
I've applied the image which shows that there's one field which you count as being under attack while it's not true; therefore, you have an error in your code.
TL;DR not an issue, that's a mistake on your side.
It's true, and I initially wanted to do this, but I took the path that definitely works. Before some version, whether it was 3.10 or 3.08 (I don't rememeber), the order wasn't guaranteed, so I'm still not used to it :P
Hello, yeah i forgot to add that you can't use sorted() function :// this is my first codewars
approved!
These lions are fussy. They don't eat chickens or pandas either.
i personnaly dont know, do you ¿
This is not an issue with the kata, your code is mutating the input. Try printing the original input right before you return to see what I mean.
I dont even understand the statement :)
If you could identify what was confusing, or have any suggestions how to clarify it, please share.
I wouldn't bother implementing a limit on a 7 kyu.
That's somewhat irrelevant because the same technique will work.
However, because this type of cheat takes a lot of chars (about 13K), you can prevent it completely by implementing a character limit to the submitted code size. Something like
500
would be fairly generous and still absolutely do the job.