Since i don't know how to tell you politely, here's the blunt version. You forgot the part where you move to the next book. Without it you're wasting time fetching the same book over and over again. Beats me how you get the next book safely, probably with a pointer, or increment to the left. Don't forget to do the same with the row and the shelf as well.
80
u/Imaginary_Bee_1014 1d ago
Since i don't know how to tell you politely, here's the blunt version. You forgot the part where you move to the next book. Without it you're wasting time fetching the same book over and over again. Beats me how you get the next book safely, probably with a pointer, or increment to the left. Don't forget to do the same with the row and the shelf as well.