Bugs in c# test cases

I have found two bugs in the test cases for c#. Where and how do i get these resolved?

Rotate Array
This asks for you to rotate and array by the number of steps passed in as a parameter. The examples for this problem clearly state that you're shifting right the number passed in, not the index. i.e if 1 is passed in you're expecting the array to replay from its x[1] onwards. The default test case for this passes, however on submission, there is an off-by-one error in one of the test cases (test case 7).

Output:

Test case 7:
Given an array, rotate the array to the right by k steps, where k is non-negative.

Input:
[1,2,3,4,5,6,7]
3 // ie skip the first 3 items (up until 3).

Output:
[4,5,6,7,1,2,3]
Expected:
[5,6,7,1,2,3,4] // this test case expected answer assumes that you're using a 0-based index, instead of a 1-based index

Implement strStr()
This problem explicitly states:
For the purpose of this problem, we will return 0 when needle is an empty string. This is consistent to C's strstr() and Java's indexOf().
When you address this edgecase to explicitly return 0 (default for c# String.IndexOf() is -1 with null) and then submit the problem, it fails on a case that says its expectly -1.

Can we have these addressed? Its unclear what the best to submit these bugs is.

Comments (1)