• + 0 comments

    I agree. They should have said non-contiguous subarray, instead of just subarray. It took me a while to figure out a solution for a contiguous one. Then I realized that they are asking to solve a simpler problem.