Reverse String

easy#string
← Back to Problems

Reverse a string in-place.

Function Signature

export function reverseString(s: string[]): void { }

Sample Tests

  • Input: ['h','e','l','l','o']
    Expected: ['o','l','l','e','h']