Doesn't A.size()-i out of bound if i ==0?


#1

doesn’t A.size()-i out of bound if i ==0 ?


#2

That’s why the program applies modulo A.size().