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.
I think you both are missing the point. This is not hardcoded, this is how you avoid extra computations. You don't have to calculate the rotation of
A
each time. Computing an alphabet is pretty common in cryptography. For rot13, the alphabet is known upfront so you can skip its computation.This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
No it's O(n)
This comment is hidden because it contains spoiler information about the solution
Another issue, your solution wrongly translates
[+..,,]
.It outputs:
Whereas the expected result is:
I think there an issue with the expected solution.
+[]
should translate to:The infinite loop is intended!
Then you should really try To BrainFuck Transpiler.
This one is really hard and is rated 4 kyu (why?!)
This comment is hidden because it contains spoiler information about the solution
What about this test?
If
undefined
is an acceptable value, then this test is wrong.I'm passing all tests, except one. What's the expected result of:
List.iterate(inc, 0).last()
List.iterate(inc, 0).foldr(identity)
List.repeat(3).reverse().head()
Should we
throw
? Returnundefined
/ empty list ?The intended behavior for infinite list is not well described...
The amount of work required by this kata is huge. You should consider trimming the method list.
Doing it in 354 lines.
This comment is hidden because it contains spoiler information about the solution
Thank you so much for this kata! It was so hard but quite enjoyable!
Loading more items...