0848. Shifting Letters
Description
**Input:** s = "abc", shifts = [3,5,9]
**Output:** "rpl"
**Explanation:** We start with "abc".
After shifting the first 1 letters of s by 3, we have "dbc".
After shifting the first 2 letters of s by 5, we have "igc".
After shifting the first 3 letters of s by 9, we have "rpl", the answer.**Input:** s = "aaa", shifts = [1,2,3]
**Output:** "gfd"ac
Last updated