+ 28
[CHALLENGE] remove string spaces
Simple challenge. Just remove string spaces and return output without spaces. For example: string = "ab c d e fgh i j kl mn opqr stuvwxy z" result = "abcdefghijklmnopqrstuvwxyz"
49 Respostas
+ 24
https://code.sololearn.com/c2D7TMGIvyVP/?ref=app
c++
Also; Could you submit this challenge via lesson factory to be reviewed for possible inclusion in a new, yet to be announced feature. Thanks!
+ 24
As Jay said, remember to submit your challenge in the Lesson Factory for a possible, delicate surprise. :>
https://code.sololearn.com/c99QFDWmZoO2/?ref=app
+ 21
https://code.sololearn.com/WDLVTBU42pge/?ref=app
+ 13
My First Kotlin Code:
https://code.sololearn.com/c57Vc9BEChQa/#kt
+ 12
Sure!
From the main screen, select the three dots in the top right corner, select lesson factory.
Select language as 'other' type as 'assignment'
Then enter the text as above in your question.
+ 11
Just one line in JavaScript
https://code.sololearn.com/W0yD4rHyk3wR/?ref=app
+ 11
https://code.sololearn.com/c5ZNjP4555Pm/?ref=app
+ 10
challenge accepted.
my code in js.
https://code.sololearn.com/WvQqRaZPrXHh/?ref=app
+ 9
https://code.sololearn.com/c0VH5qhxI5NU/?ref=app
+ 8
https://code.sololearn.com/cI5e7hDWTif5/?ref=app
+ 8
Here is mine:
https://code.sololearn.com/cUG6Zi7Tx90g/?ref=app
+ 8
+ 6
Another python way:
print( input().replace(“ “, “”) )
+ 6
C++:
std::string s; getline(std::cin,s);
std::replace(s.begin(),s.end(),' ',
static_cast<char>(0)); std::cout<<s;