Karteikarten
Reverse string
Karten in diesem Stapel (1)
- 1Reverse stringclass Solution:
def reverseString(self, s: List[str]) -> None:
"""
Do not return anything, modify s in-place instead.
"""
low = 0
high = len(s) - 1
while low <= high:
temp = s[low]
s[low] = s[high]
s[high] = temp
low += 1
high -= 1
Informationen
- Beschreibung
- Karteikarten am Reverse string, erstellt von Suhas S am 14/09/2019.
- Erstellt von
- Suhas S
- Aufrufe
- 1
- Bewertung