You are viewing a single comment's thread. Return to all comments →
i m still confused with the logic, can you please explain it furthure more?
NB. The range is (1, n+1). I didn't start from 0 because that will cause an empty space at the beginning of the output and I also ended at n+1 because the loop ends and n-1 so I add 1 to get to the correct n.
Do you get it now?
Yes! you explained it awesome.
Thank you man!