Day 4 of June LeetCode Challenge

Aanchal Patial
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.

--

--

Aanchal Patial

We never really grow up, we only learn how to act in public