Easy10 pts
Reverse String In-Place
Reverse a string in-place using two pointers. Swap characters from both ends moving towards the center. Example: 'hello' → 'olleh'
Input
A single line containing a string.
Output
The reversed string.
Sample
hello
Expected
olleh
Loading editor…
Output
No output yet. Run your code to see results.