I enjoyed this one. Great tests. This is a good problem for test driven development, and it shows. Two suggestions:
State more explicitly in the problem that going out of bounds wraps around. The test for this was called "toroidal", but I didn't know what that meant.
This problem seems more difficult than 4kyu. Personally I'd peg it at 3kyu or 2kyu.
PHP working for me. Maybe they fixed it.
I enjoyed this one. Great tests. This is a good problem for test driven development, and it shows. Two suggestions:
Thanks.
It's already been approved.
PHP version might need more secret test cases. Answers like this are getting through. If I'm reading the kata right, there were only 2 tests I think.
; rdi = array (pointer)
; esi = size (unsigned int)
This comment is hidden because it contains spoiler information about the solution