Search
⌘K

Leetcode 1528. Shuffle String

Given a string s and an indices array that is a permutation of 0..n-1, reconstruct and return the string formed by moving the character at position i in s to position indices[i] in the shuffled string.


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Comments

Your account is free and you can post anonymously if you choose.