Empty subsequence


Task description doesn’t specify that subsequence should not be empty.
If so shouldn’t empty subsequence count as valid for test A: [ 1 ], B: 0, C: 0 ?


According to the problem Continuous subsequence is defined as all the numbers A[i], A[i + 1], … A[j]
where 0 <= i <= j < size(A)
because of range of i and j you will never get any empty subsequence


Right my bad. Usually range is open at the end.
I need to read problem descriptions more carefully :slight_smile: