Reverse String Problem
Reverse String Problem — ExecCode Easy DSA Practice
Solve the Reverse String problem on ExecCode. Free online easy DSA practice in Arrays - Basics. Write and run code in Java, C++, Python — no signup required to run.
Problem description
Write a function that reverses a string in-place as an array of characters. For Reverse String, focus on the exact input variables, return only the requested value, and preserve the required time complexity for the intended pattern.
Examples
Input s = ["h", "e", "l", "l", "o"]; Output ["o", "l", "l", "e", "h"]
Constraints
1 ≤ n ≤ 10^5 Values fit interview constraints
Practice Reverse String free on ExecCode. Browse DSA problems, topic map, and placement guides.