Reverse String Recursive Problem
Reverse String Recursive Problem — ExecCode School DSA Practice
Solve the Reverse String Recursive problem on ExecCode. Free online school DSA practice in Recursion Basics. Write and run code in Java, C++, Python — no signup required to run.
Problem description
You are given a word or a message. Your task is to take all the letters in it and put them in reverse order. For example, if you are given "hello", you should print "olleh".
Examples
Input {"s": "hello"}; Output olleh. Input {"s": "A"}; Output A
Constraints
1 <= len(s) <= 10⁴
Practice Reverse String Recursive free on ExecCode. Browse DSA problems, topic map, and placement guides.