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.
This solution does not always work correctly.
Here is an example: seconds = 9597540.
Error: '111 days, 1 hours' should equal '111 days, 1 hour and 59 minutes'
This comment is hidden because it contains spoiler information about the solution
:) sorry, you are right
Are you sure? "10003" is lexicographically smaller than "22", isnt it?
Which of these two comes first when sorted in dictionary/lexicographical/alpbabetical order?
but string '10003' > '22'
I realized my mistake, it was necessary to additionally check for equality. Thanks for help!
if window > h I return -1 (by condition), if bounce is less than 0 or greater than 1 I also return -1. What's wrong?
Your code is wrong for those conditions.
I still cannot understand what the problem is, I re-read the conditions several times, I have a check for non-compliance of the condition and if so, return -1, so what is the problem?
Not a kata issue, read the conditions in the description again.
This comment is hidden because it contains spoiler information about the solution
.
Thank you so much! I was getting errors about that and did not understand the criteria that was being followed
11 comes before 2000 because it's sorted like a word, comparing characters starting from the left: "1" comes before "2".
10003 comes after 11 and 2000 because 1 + 1 and 2 + 0 + 0 + 0 are 2, and 1 + 0 + 0 + 0 + 3 is 4.
This comment is hidden because it contains spoiler information about the solution