+ 1
Scrambled array (please help, important for me)
How to write scrambled version of string? eg : I want to drink sol: I wnat to dnirk.
2 Answers
+ 2
Assuming the rule of your "string scrambling" is to reverse each word letters except of first and last, and input contains only letters and spaces (not punctuation):
https://code.sololearn.com/c75kVQSXFsNh/?ref=app
0
thanks you two