Leetcode | 1528. Shuffle String | Easy | Java Solution

preview_player
Показать описание
This video has the Problem Statement, Solution Walk-through and Code for the Leetcode Question 1528. Shuffle String, with a Time Complexity of O(n) and Space Complexity of O(n).

1528. Shuffle String [Leetcode Question]:

Time Stamps ⏱️:
0:00 - Problem Statement
0:38 - Solving the Problem
2:42 - Code [Java]
4:21 - Time & Space Complexity
____

1528. Shuffle String
Leetcode Shuffle String
Shuffle String
Shuffle String Leetcode Solution
Shuffle String Java Solution
Leetcode 1528
Leetcode 1528 solution
Leetcode Solutions Playlist
Leetcode Java Solutions Playlist
Leetcode Easy Solutions
Developer Docs Leetcode
Shuffle String Developer Docs

Hashtags:
#leetcode #leetcodesolution #java #leetcodedailychallenge
Рекомендации по теме
Комментарии
Автор

class Solution {
public String restoreString(String s, int[] indices) {
char[] result = new char[s.length()];
for (int i = 0; i < s.length(); i++) {
result[indices[i]] = s.charAt(i);
}
return new String(result);
}
}

nilabhamondal
visit shbcf.ru