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.
same :D :D :D
Read Clarifications part of the description to know how the clients go to the tills.
Totally agree. The kata doesn't say that the fastest customers check out first.
That doesn't make your solution correct. It's very likely that you're using biased and limited inputs, which give faulty solutions (like yours) the appearance that they are correct.
That is false:
Your solution contains a very common beginner's mistake. I recommend taking a deeper look at the failed test case to figure out what is going wrong.
This comment is hidden because it contains spoiler information about the solution
Your code is not case-insensitive. So it doesn't work there either, you just didn't check it with the same input values.
My solution works fine in VS Code...
till 1 will serve 2 then 10
till 2 - 3 then 2
total time - 12
There is no need for complicated concepts. Try to solve simple case on paper first. E.g ([1, 1, 2, 3], 2) == 4
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Mate, this is beautiful. Simple, elegant and easy to understand, even for a beginner like me. Thanks a lot!
This comment is hidden because it contains spoiler information about the solution
My solution works in VS Code but on here, it is saying that for an empty string input, it was expecting the function to return '1'. This makes no sense as '1' represents the letter 'a'. If the input string contains nothing, then I don't see how a return of '1' can possibly be expected.
You're not testing it properly there.
Loading more items...