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.
Love it.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
The single-line if statement syntax used here is an elegant way of including both a null check and it's corresponding if-block statement.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
What is the meaning of the symbol * here?
This comment is hidden because it contains spoiler information about the solution
If your browser is showing the spirals using a narrow font, it may be more difficult to see the spiral pattern at first glance. The spiral pattern may be easier to see when visually spread out more:
You know when you see something so simple.
And it makes so much sense.
And you missed it when you were solving the problem.
This is that 🤦♂️
Nice kata.
Interesting to see the OR operator in the argument to int()
ie. int(a OR b)
What is this technique called? I've not seen it described anywhere and can't seem to find a name for it.
Thanks for posting. I had the same mistake.
I like the idea of using a kwarg for the cache... I used a global variable and was wondering how I could have avoided it.
big brain algorithm
Loading more items...