Problem 1540 · Medium

Can Convert String in K Moves

Check whether each character shift can be made within the move budget by grouping the shift amounts each letter needs. The visual shows each required shift and the running move count.

Open the interactive visualisation