GoConqr hat ein neues Design! Sag uns, wie es dir gefällt.

Karteikarten

Reverse string

Suhas S Englisch 1 Karte

Karten in diesem Stapel (1)

  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

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck