Scrambled array (please help, important for me) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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.

23rd May 2018, 8:12 AM
Yuzana Hninn
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
23rd May 2018, 2:43 PM
visph
visph - avatar
0
thanks you two
23rd May 2018, 4:16 PM
Yuzana Hninn