+ 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"

14th Feb 2018, 2:03 PM
r8w9
r8w9 - avatar
53 odpowiedzi
+ 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!
14th Feb 2018, 2:15 PM
jay
jay - avatar
28th Mar 2018, 8:42 AM
Danijel Ivanović
Danijel Ivanović - avatar
+ 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
14th Feb 2018, 2:36 PM
Hatsy Rei
Hatsy Rei - avatar
+ 21
https://code.sololearn.com/WDLVTBU42pge/?ref=app
5th May 2018, 2:22 PM
Danijel Ivanović
Danijel Ivanović - avatar
14th Feb 2018, 2:25 PM
David Ashton
David Ashton - avatar
14th Feb 2018, 3:12 PM
Cool Codin
Cool Codin - avatar
+ 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.
14th Feb 2018, 3:00 PM
jay
jay - avatar
16th Feb 2018, 1:36 PM
VISHAL SRIVASTAVA
VISHAL SRIVASTAVA - avatar
+ 11
14th Feb 2018, 2:44 PM
DAB
DAB - avatar
+ 11
https://code.sololearn.com/c5ZNjP4555Pm/?ref=app
14th Feb 2018, 9:04 PM
Saurabh Tiwari
Saurabh Tiwari - avatar
+ 10
challenge accepted. my code in js. https://code.sololearn.com/WvQqRaZPrXHh/?ref=app
17th Feb 2018, 10:02 PM
UnknownYmous
+ 9
https://code.sololearn.com/c0VH5qhxI5NU/?ref=app
14th Feb 2018, 2:42 PM
Boris Batinkov
Boris Batinkov - avatar
15th Feb 2018, 2:06 AM
Muhd Khairul Amirin
Muhd Khairul Amirin - avatar
+ 8
https://code.sololearn.com/cI5e7hDWTif5/?ref=app
14th Feb 2018, 2:33 PM
ƒred
ƒred - avatar
15th Feb 2018, 12:24 PM
📈SmileGoodHope📈
📈SmileGoodHope📈 - avatar
15th Feb 2018, 1:58 PM
SQrL
SQrL - avatar
15th Feb 2018, 5:45 PM
Med Arezki
Med Arezki - avatar
+ 6
Another python way: print( input().replace(“ “, “”) )
14th Feb 2018, 8:38 PM
Pedro Demingos
Pedro Demingos - avatar
+ 6
C++: std::string s; getline(std::cin,s); std::replace(s.begin(),s.end(),' ', static_cast<char>(0)); std::cout<<s;
15th Feb 2018, 12:18 PM
Solo Wanderer 4315
Solo Wanderer 4315 - avatar