Problem
Given a string s, return a new string containing the characters of s in reverse order. Solve the problem without using Python's built-in reverse helpers such as slicing with [::-1], reversed(), or converting directly through convenience methods that already perform the reversal.
Constraints
- 0 <= len(s) <= 10^5
- s may contain letters, digits, spaces, and punctuation
- Do not use built-in reverse helpers such as slicing with
[::-1]orreversed()
Function Signature
def reverse_string(s):
Practicing as: Mobile Engineer interview at AutodeskHi, I'll play your Autodesk interviewer for the Mobile Engineer role. Answer the question above like we're in the room, and I'll respond the way a real interviewer would.
You are practicing as a guest. Sign up free to run your code against the sample data. Your draft stays right here.


