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 comment is hidden because it contains spoiler information about the solution
Have you tested any of your claims? https://go.dev/play/p/596Wj16Phzj
This comment is hidden because it contains spoiler information about the solution
Apparently, this can be done in O(n2) at best. Correct?
Best solution out there! Very elegant!
I'll try to figure out anyway, but I agree with you.
Could you please explain the logic behind the choice of 0.0002?
So elegant and simple. Amazing!
This comment is hidden because it contains spoiler information about the solution
Equivalent to
iter_s = iter(s); zip(iter_s, iter_s)
orzip(s[::2], s[1::2])
In Python, the following generates a timeout:
Given that, I don't see how one could solve this kata in the allotted time.
This could be improved: right now, you are calling b.lower() for every letter in a, and you are calling a.lower() for every letter in b.
This comment is hidden because it contains spoiler information about the solution
Needs a test case for array of length 1
First, this problem is about keeping track of the different bank notes (25, 50, 100) to determine whether you can give change. Also, note that right now you are adding (25 - change) for every transaction, but every transaction should add a net amount of 25 to the cash.
Loading more items...