作者:
leafff (LEAF)
2025-07-04 15:58:48https://leetcode.com/problems/find-the-k-th-character-in-string-game-ii/
3307. Find the K-th Character in String Game II
給定一個數組operations與整數k,
原先有一個字串word = "a",
依照operations的順序執行以下操作:
如果operations[i] == 0,
則將word複製一份並接在word後面;
如果operations[i] == 1,
則將word的所有字元更改為英文字母的下一個字母("z"改為"a"),
並接在word後面。
返回執行後word的第k個字元