Square brackets

sir there is something wrong in this question as i have opened the test cases and

  1. first of all k numbers are not in increasing order as mentioned in the question
  2. also in first test case there is a case of
    40 4
    78 63 19 46
    how come it can have answer 0 as out of 80 only 4 positions are initialized answer should be atleast 1
    please look into the matter and by the time provide some other link where i can submit this question

Question is correct , if you have any doubt you can refer the actual question here.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.