Regarding collaborative mode

Challenges : Arrays- Spiral Print Anticlockwise

i have submitted the solution code to above with activated collaborative mode, please tell which case i’m missing out ?

hello @prerak_semwal

2 6
1 2 3 4 5 6
7 8 9 10 11 12

for this case expected output is ->
1, 7, 8, 9, 10, 11, 12, 6, 5, 4, 3, 2, END

but ur code is giving->
1, 7, 8, 9, 10, 11, 12, 6, 5, 4, 3, 2, 3, 4, 5, 10, 9, 0, END

1 Like

check ur updated code here->

u have to increment ur count for each iteration

1 Like

@aman212yadav
thank you so much
I wanted to know that did me turning collaborative mode on notified you ?

no , always try to share ur code by generating link through cb ide.

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.