diff --git a/1528. Shuffle String.cpp b/1528. Shuffle String.cpp new file mode 100644 index 0000000..91ce7ef --- /dev/null +++ b/1528. Shuffle String.cpp @@ -0,0 +1,12 @@ +// https://leetcode.com/problems/shuffle-string/ + +class Solution { +public: + string restoreString(string s, vector& indices) { + string sol = s; + for(int i=0; i