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.
If the stations are arranged next to each other, in positions [0, 1, 2, 3] is [1, 2, 3, 4] a valid conveyor belt configuration?
hm. not sure how we can change the leveling after a kata is accepted.
invalidated due to additional stress test
well done. I think this is the first I've seen with this approach in O(n) time
ooh good catch. that only killed one solution which does indeed have an inner loop:
https://www.codewars.com/kata/reviews/645e79dbbdccc80001144e52/groups/645ff9953cd4400001de1e26
technically it is still the same, just that more of it is visible :D
but ig this requirement doesn't make the solutions much more interesting. so we can kill it.
k. I'll add more perf tests
added smaller ones
oh wait I can see your code.
your solution only looks at the beginning of the string.
so something like this would return True.
this should be false because the last two trains pass each other.
ooh that'll work. thanks
I'd be curious to see those test cases once you have them.
clean code. I like it.
I can break it tho. this is what I get for not writing comprehensive tests -_-
say some trains shall move back slightly. then others move forward as god intended. then adl > bdl. then the case is marked valid.
kk
fixed
resolved
Loading more items...