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.
A lot of language allow comparison of characters directly, treating them as their ascii value.
I assume yours too.
If you compare both 180 and 90 in string form as such:
"180", "90"
You can see that
"180"
is lexicographically less than"90"
The description must be improved. I found my error! Read the comment from creme332.
Your question wasn't deleted, it was marked as having spoiler content because you're posting your code in it, please read the docs using the link NunoOliveira gave you below.
Also, see the initial code:
If you change the function's name, it won't work with the tests.
What failure message is shown on Codewars when a test fails? Did you read it? Did you understand it?
...and what is your question?
Please use appropriate markdown formatting and flag your post as a spoiler when posting code. See https://docs.codewars.com/training/troubleshooting#post-discourse.
No, not everything is nice. Not a kata issue.
Please use appropriate markdown formatting and flag your post as a spoiler when posting code. See https://docs.codewars.com/training/troubleshooting#post-discourse.
Your code is too inefficient. You need a better time complexity. See https://docs.codewars.com/training/troubleshooting#timeout.
You need to make it more stroke. More strokes is more speeds.
Your code being too slow is not a kata issue.
Hi,
not an issue, your code is too slow, that's all. (that or it runs in an infinite loop)
edit: looks like you're trying to randomly generate permutations. Think about it, when you have all permutations of 10+ elements to generate. => ?
Cheers
Random tests are fine, not a kata issue.
Also read this: https://docs.codewars.com/training/troubleshooting#post-discourse
Not a kata issue. print the final output and compare it with the expected one.