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.
So that's why I'm seeing StringBuilder a lot!
this solution is helpful for newbie
Did you mix in your post "Expected" and "but was"?
For n = 31 ->
"Expected" result is: "Range: 78731 Average: 6326.47 Median: 1920.00" with a length of 45.
That result is the same in all languages. 66 guys passed the C# kata; I think that if there were errors someone would have seen it.
I tried a few solutions without problem. For n = 31 they give the "Expected" result.