input:
t is no of test case, s is the string.
3
good boy
sky is blue
rose is red
output
yob doog
eulb si yks
der si esor
how to do this ques?
input:
t is no of test case, s is the string.
3
good boy
sky is blue
rose is red
output
yob doog
eulb si yks
der si esor
how to do this ques?
Run a loop for test cases, store string in a string variable str, then do this
reverse(str.begin(), str.end());
Your string will be reversed.
Make sure you use string header file for this.
what is wrong in that code
Check now=>
I am not familiar with transform function. So can’t say anything for that. The code i have attached is giving desired output. You can check.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.