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.
how did you get your code formatted here? When I save my entries it never looks the way like in the preview.
-> I found the answer in the wiki.
Resolved then.
ok ive done that
You're doing an addition of a subarray each time, that won't work, it's O(n2). I've written a post below about that.
This comment is hidden because it contains spoiler information about the solution
Start from two easier katas from my Digital cypher kata. It'll help you to understand how this encryption works.
Does that data:
string word = "masterpiece";
int[] code = new int[] { 14, 10, 22, 29, 6, 27, 19, 18, 6, 12, 8 };
really should return 1939 ?
I think that 193 or maybe i am understanding something wrong. Im writing in C# if its matter for you :)