From f9698778f1fd9f237599dffb836ba3ad90f4e893 Mon Sep 17 00:00:00 2001 From: Himanshu Malviya <79209336+malviyaHimanshu@users.noreply.github.com> Date: Wed, 19 Oct 2022 19:11:33 +0530 Subject: [PATCH] Create 1528. Shuffle String.cpp --- 1528. Shuffle String.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 1528. Shuffle String.cpp 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