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.
Prolog:
The true answer is around
239.235262893700738
, the reference solution is too far from it.In prolog, attempting to load
clpfd
causes full tests to always timeout.same here
This was a great warmup on spinning and flipping a matrix. Going to look at the other katas you've created because these 4 "Squared strings" were fun. Thank you!
Your code doesn't return -1 when bounce is 1
If bounce is 1 and h is greater than window, it will always be greater than window so the loop runs forever.
done
done
You approved the translation I made for "Moves in squared strings (IV)" but I didnt make one for this kata, but this kata also has the same issue.
You can fix it by copying what I did the other translation (ie. remove all lambdas)
Be more precise
Translation approved
Approved
Lua translation!
Fork with fix
I sort of rushed it, but if this changes the description in any way, maybe you could just add the line in question manually @g964 and resolve it that way.
So apparently my Prolog translation was generating random atoms, not strings. I published a quick fix here https://www.codewars.com/kumite/5e1c9fea42473c00300e516e?sel=667d9531de35874b97fcff8d
Loading more items...