Hi everyone,
I was just solving 707D - Persistent Bookcase and I got WA on test 9.
I really have no idea what's wrong with my solution could somebody please help me to debug it I've tried real hard but to no avail.
my code[submission:22511356].
Thank you for reading.
:)