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.
Both fixed tests in C++ having 362 expect false.
Please read this: https://docs.codewars.com/training/troubleshooting#post-discourse
And check out the error message:
Your code returns a string, not a number.
It's written in the first sentence of the description:
Isn't it the other way around? The input is a n x n array (or List for Python) and the output is a 1D list.
Print the input using
console.log()
.Remove the code that's outside the function to get rid of that error. Then your code has a bug:
Also read this: https://docs.codewars.com/training/troubleshooting#post-discourse
Because you can eliminate opposite directions only if they are next to each other. Check the Other examples part of the description.
Please mark your post as having spoiler content next time. Your post was visible in the homepage discourse.
I'll add that other example if you think that'll make it clearer.
You can see from there that no 3 is counted.
This comment is hidden because it contains spoiler information about the solution
You should probably mention the language you're talking about. If it was Rust, then it was fixed.
Read this: https://docs.codewars.com/training/troubleshooting#expected-the-same
Not a kata issue.
That's because lists and tuples aren't the same thing. Not a kata issue, use question label next time.
Loading more items...