Day 4 of June LeetCode Challenge
1 min readJun 4, 2020
--
Write a function that reverses a string. The input string is given as an array of characters char[]
.
Do not allocate extra space for another array, you must do this by modifying the input array in-place with O(1) extra memory.