摘要: 给你一个字符串 s 和一个 长度相同 的整数数组 indices 。 请你重新排列字符串 s ,其中第 i 个字符需要移动到 indices[i] 指示的位置。 返回重新排列后的字符串。 输入:s = “codeleet”, indices = [4,5,6,7,0,2,1,3] 输出:“leetc 阅读全文
posted @ 2022-03-28 00:38 epiphanyy 阅读(20) 评论(0) 推荐(0)