Pergunta de entrevista da empresa MemoryBlue

Write a function to reverse a string.

Resposta da entrevista

Sigiloso

30 de jul. de 2024

def reverse_string(s: str) -> str: return s[::-1] # Example usage print(reverse_string("hello")) # Output: "olleh"