For loop initialisation in wave sort

According to me can start the loop with i=1 instead of checking for i>0. Please Help.

Hey Anant, please post your code’s and problem’s link also. So, that we will be able to get what you are exactly trying to ask and help you with that.