+ 30
CHALLENGE: REARRANGE STRING 💻⌨️🖱️
Level : easy Task: Create input as string with 30 randomly characters (lowercase). Rearrange input on next way: 1. Put space after each vowel 2. Capitalize first letter of each word in string. Show us input and final string. All languages are welcome! 😉
25 ответов
+ 8
in ruby + oneliner:
https://code.sololearn.com/cKbfAltkajRE/
+ 19
For example:
https://code.sololearn.com/cSaoyNjVp3fV/?ref=app
+ 19
+ 19
https://code.sololearn.com/cJ6a1YUM2yq9/?ref=app
+ 14
Here's mine, the string changes everytime you run the code
https://code.sololearn.com/clAVmYsRZZvS/?ref=app
Spam and eggs, people....
+ 12
+ 10
@Stoyan
Nice code, but put space after each vowel instead before each vowel 😊
+ 8
Here's my try in 🐍
Check it out!
https://code.sololearn.com/cN9rkPXXKUAP/?ref=app
+ 8
https://code.sololearn.com/c8k1xVMR9jqT/?ref=app
+ 7
Loopy one here!
The string is fully up to you. Input it and have fun.
Edit:
While testing here, I saw the inputs only work until 24 characters. I tried my best, though 😊
https://code.sololearn.com/ckSftyEnjwDp/?ref=app
+ 6
Python oneliner:
EDIT: updated to comply with 30 random chars rule, didn't see that.
https://code.sololearn.com/cnDLNnR1shsO/?ref=app
+ 6
Hey! Here's mine:
https://code.sololearn.com/cHYxbGyyE2ee/?ref=app
+ 5
@Jonathan
for me it is working but problem starts when input end with vowel... try it yourself :-)
and also first character is not capitalized even it is start of first "word". but it is a nice, easy to read code :-)
+ 4
My python 3 try :)
https://code.sololearn.com/ck91URvKh69i/
+ 4
here's my solution https://code.sololearn.com/cGfvk0Rud47g/?ref=app
+ 4
My try (So late, but i don't like missing good challenges ! ) :
https://code.sololearn.com/cqRDAMrFq63i/?ref=app