# [1528. Shuffle String](https://leetcode.com/problems/shuffle-string/)   char * restoreString(char * s, int* indices, int indicesSize) { for(int i=0;i<indicesSize;i++) { for(int j=0;j<indicesSize;j++) { if(indices[j]==i) { char temp; temp=s[i]; s[i]=s[j]; s[j]=temp; int temp1; temp1=indices[i]; indices[i]=indices[j]; indices[j]=temp1; } } } return s; }
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up