Posted on March 21, 2021March 21, 2021 Description Submission class Solution { public: string restoreString(string s, vector<int>& indices) { int l = s.length(); string ret = s; for(int i = 0; i < l; ++i) { ret[indices[i]] = s[i]; } return ret; } }; By Bill0412 Easy LeetCode