Joined March 2014
·

Dun Liu

Greater Chicago Area
·

while loop (k>=0) and inside loop if (k==0) break;

redundant logic

just while (k>0) is enough

Thank you, rabovik. I went through the runtime guide, then I understood.

Question: self is the reserve keyword, why it can be argument without problem?

Achievements
1 Karma
0 Total ProTip Views