For the input below it gives 20, which is wrong. (Using Java, V2.0) **INPUT** 21 5 1 3 7 8 11 output: OUTPUT 3 0 3 4
For the input below it gives 20, which is wrong. (Using Java, V2.0)
INPUT
21 5
1 3 7 8 11
output:
OUTPUT
3
0 3 4