How someone help me understand how the output of the problem below is “0,1,2”? I just can’t read the code?
Is that surprising for you? Would you rather say some other answer should be correct? Try going by hand through the code step-by-step and see what you are getting.