(String s, int[] indices)
| 1 | class Solution { |
| 2 | public String restoreString(String s, int[] indices) { |
| 3 | char arr[] = new char[s.length()]; |
| 4 | for(int i=0;i<s.length();i++) |
| 5 | { |
| 6 | arr[indices[i]] = s.charAt(i); |
| 7 | } |
| 8 | String res = String.valueOf(arr); |
| 9 | return res; |
| 10 | } |
| 11 | } |
nothing calls this directly
no outgoing calls
no test coverage detected