344. Reverse String

Practice Reverse String for free on NudgeCode: Easy, Two Pointers pattern. Write it in Python or JavaScript, run the tests in your browser, and ask for a hint when you are stuck.

Reverse the array of characters s in place, using O(1) extra memory. Don't return anything.

Example

s = ["c","o","d","e"]  ->  ["e","d","o","c"]

Constraints