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.
Haha,true.. I guess it's a solution from 2017 or whatever. Good catch!
The loop condition is off-by-one.
Don't worry! We've all been there as well. :) Try to turn that frustration into motivation. Also - never stop improving!
Submitted C translation. :)
This comment is hidden because it contains spoiler information about the solution
Hey. I have trouble allocating memory for result in C language.
Error. Expected {{6, 12},{4, 12},{3, 12}} but got {{6, 12},{0, 33},{4, 12}}
I have also verified whether by returning shifted array I could reproduce the bug. I did. So at my platform my array is continuos {6,12},{4,12},{3,12}. However, at return, it is read as {6,12},{0,33},{4,12},{0,33},{3,12}. I have verified (to no avail) whether sizeof(long long) is equal on both ends - it is indeed. I am stuck here, and my kata is basically solved (algorithm-wise).
Here is how I've allocated said array: http://pastebin.com/yXzTDvGG