Can I get a small hint to start this question?
Can I get a small hint to start this question?
Hi,
suppose the string is: “1234” ans should be 1234. You can think to solve this question by considering that you have the number 4 at present with you. 123 is solved by recursion. you just have to do 123*10+4=1234.
Now, try to solve this problem.