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.
What failure message is shown on Codewars when a test fails? Did you read it? Did you understand it?
Idk why, but my question was deleted.
Alright.
I want to ask why is my code working nicely in PyCharm, but result of my code is other on the site?
...and what is your question?
This comment is hidden because it contains spoiler information about the solution
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.
This comment is hidden because it contains spoiler information about the solution
You need to make it more stroke. More strokes is more speeds.
Your code being too slow is not a kata issue.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
"When two numbers have the same "weight", let us class them as if they were strings (alphabetical ordering) and not numbers:
180 is before 90 since, having the same "weight" (9), it comes before as a string."
Who can, plese, explain me this?
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
Loading more items...