Generating Subarrays

Why K should be less than or equal to j?

hi @vanshikasharma1645 you want to generate a subset from [k, j]
so it does not make sense if k > j
a subarray of range (4, 3) makes no sense right? starting range <= ending range

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.