Ad
  • Custom User Avatar

    I thought it was a fun problem, but also felt it was probably a 5 or 6 kyu. I know that's feedback which has already been given.
    If there isn't one already, I'd suggest a test case which has a single element array. Most base case conditions seem to use array.length==1, which has that kind of input as a potential vulnerability.