Reverse String
easy#string
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']
Reverse a string in-place.
export function reverseString(s: string[]): void { }