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
- 1 <= s.length <= 10^4
s[i]is a printable ASCII character