HTMLify

LeetCode - Shuffle String - Python
Views: 135 | Author: abh
class Solution:
    def restoreString(self, s: str, indices: List[int]) -> str:
        shuffeld = ""
        for i in range(len(s)):
            shuffeld += s[indices.index(i)]
        return shuffeld

Comments