Generating subarrays

i didnt understand the use of another k loop

@ayushi17 well you have to print the subarray of every size right? so k is traversing from i to j so it is helping in printing all the subarrays.
i hope its clear ayushi if yes dont forget to mark it resolved and hit like :smiley:

1 Like

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.