Why it is saying array index out of bound?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why it is saying array index out of bound??

https://code.sololearn.com/cf4MbYW2qoU7/?ref=app

20th Sep 2017, 12:27 PM
kanishka
kanishka - avatar
6 Answers
+ 1
Ok thank you.
20th Sep 2017, 1:17 PM
kanishka
kanishka - avatar
0
Ok @gordie I have removed the - 1 and - p from above loops now again it's showing same error 😑 https://code.sololearn.com/cf4MbYW2qoU7/?ref=app
20th Sep 2017, 12:34 PM
kanishka
kanishka - avatar
0
Why here i=p? I didn't get the logic.
20th Sep 2017, 12:41 PM
kanishka
kanishka - avatar
0
Ok thank you for your help. @gordie I guess there is some other problem also.. This code is not performing sort correctly.
20th Sep 2017, 1:11 PM
kanishka
kanishka - avatar
0
I got my mistake. Thanks a lot.
20th Sep 2017, 1:22 PM
kanishka
kanishka - avatar
0
Okk that fine. Thanks you 👍
21st Sep 2017, 7:19 AM
kanishka
kanishka - avatar