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.
demonstrate what can be done, be original, have fun.
This is the first kata I ever solved in codewars, happy to see how I improved with python in ~7 years.
Some when going forward you start going backguards. Here my new solution xD
https://www.codewars.com/kata/reviews/557730efe9be66fc1b00011b/groups/62d0c43ccd97700001765d82
xD just run it man.
😂
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
In most cases probably is true what you say, but I did the numbers for this case and is faster to create a custom function that computes min and max in On.
https://gist.github.com/albarralnunez/d62c6a7011bc8353f1b0afcf4b91f246
Cool solution, I just want to point out that you can divide by two the number of iterations that are need it, finding min and max in the same one. Also is good to use ward clausules for exit conditions. So clever 100%, but for my is not following best practices.
Elegant! thank you, best present to learn.
Now it's in functools where it belongs. :)
This not depends of how you evaluate it?
The lambda function was cool but not needed
You have a point, no doubt.
I just put lambda function for fun, as a way of change the operation applyed to the encoding easily.
As many people says, the fact that the kata actually expects you to find the pair with the smaller second index, must be explicit in the description. If you try to solve using left to right parsing with lazy evaluation the result is different than the result expected for the tests
srry I don't understand why, in the first iteration will find ')' and return False, solved.
This comment is hidden because it contains spoiler information about the solution
Loading more items...