1427. Perform String Shifts

Share this post on:

Don’t forget mod when dealing with shifting.

A negative number a: a % b = (a + b) % b

Anyway, easy makes me happy.

Share this post on:

Leave a Reply

Your email address will not be published. Required fields are marked *