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.
oh nice, thats two lines cleaner than me lol
Solutions are not revalidated automatically when language version changes, because it would be too much work for servers. It can be revalidated manually, or when the code of the Python version of the kata changes.
shouldn't this solution be invalidated then?
This comment is hidden because it contains spoiler information about the solution
how does this syntax even worK? no way
This doesnt seem to handle low ace-straights? eg
"4H AC TD 5S 8S"
vs"2D AH 5C 3H 4S"
oh nice, forgot to think iteratively lol. my solution is does it recursively, which looks very... unclean.
What are the differences with part 1?
They should be mentioned in description, otherwise this kata is simply a duplicate.
Also performance tag can be added to suggest an optimized solution is required
Fighting for 0.2ms is micro-optimization
Micro optimization? For me, using his set approach doubled the execution time. In no way is changing that a micro optimization. With input row, where len(row)=725, it took 0.15ms with my current dictionary solution, using set approach instead, increased it to 0.32ms. Using your proposed alternative took no less than 0.20ms.
Also, I think that your comment should have a spoiler flag.
This comment is hidden because it contains spoiler information about the solution
But, without return neither? This takes as argument(s) the variable itself and returns it all in one?
Finally implemented an optimization here.
Can be used to run tests up to 10^18 without timing out.
Why would that be necessary? Task states, that you're given words and you don't need to sanitize them. There are 100+ more unnecessary things he could do, what's the point of mentioning them?
Thanks!
Loading more items...