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.
Just renaming
result
tosteve_wins
andl
tototal_non_ties
could do it much easier.Hello. The problem is you can't just compare directly, as alphabetical order isn't equal ranking here, as 'T' < 'J' is False.
The best one!
Is it somewhat more performant than a "default" (simple join) solution?
Like, it applies limit only on the first subquery, so there is no need to watch the whole customer's table.
This comment is hidden because it contains spoiler information about the solution
Yep, I was confused by making bad experiment.
I tried on
range(10)[1:5]
->>>> range(1, 5)
- returns something not because range is just generator but because it returns object that support supsbcirping (or how it calls).On
or simpler
(elm for elm in 'yeet')[1:3]
returns
TypeError: 'generator' object is not subscriptable
ofc, since it's not possible... x)
the list is built first, then it's indexed
This comment is hidden because it contains spoiler information about the solution
I think you are making things difficult for yourself by imagining rules that don't exist.
e.g.
Kata says:
This means the ants can WALK in and WALK out of the terrain (avoiding complications of bridges with only one known end)
It does NOT say there is some magic platform at the end with "solid ground with enough space for all ants".
Kata says:
So you know they do not stand around mingling on some imagined platform having some kind of ant party. They EXIT.
Sory for delay.
So, like it seems natural that it's about all ants, but where is the end of the right hand side? Is it will be that last platfform as in
-...-.-
? AlsoThe terrain never starts or ends with a gap
it doesn't matter then is terrain ends with gap or not. I'm not native English speaker and maybe it's just my fault yet maybe we need something like additon in bracesuntil all the ants reach the right hand side (solid ground with enough space for all ants)
.Why is this an issue? Kata description already says:
NOTE: all ants
What part is not clear?
This comment is hidden because it contains spoiler information about the solution
OMFG!!! That isn't obvious, I spend 2 days solving it thinking that we should return state as ants stops at right end of terrain.
Loading more items...