← All problems
Reverse String
EasyTwo Pointers
Reverse a list of characters in place. Return the reversed list.
Examples
Input: ["h","e","l","l","o"]
Output: ["o","l","l","e","h"]
Input: ["A"]
Output: ["A"]
Hints
Solution
Language:
Loading editor…
Output0 lines
Run your code to see output here.
Click Run all tests to check your solution against 4 test cases.