¡GoConqr estrena diseño! Cuéntanos qué te parece.

Fichas

Reverse string

Suhas S Inglés 1 ficha

Fichas del conjunto (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

Información

Descripción
Fichas sobre Reverse string, creado por Suhas S el 14/09/2019.
Creado por
Suhas S
Visitas
1
Valoración

Escríbenos

¿Sobre qué es tu mensaje?

¿Qué te parece el nuevo diseño?

¿Te gusta?