Practice on Toph

Participate in exhilarating programming contests, solve unique algorithm and data structure challenges and be a part of an awesome community.


By tahmedge · Limits 1s, 512 MB

Giving Hashtag in Social Network is very popular now a day. But Poltu is very new in Social Network. So, he doesn't know the rules of giving Hashtag. One of the primary rules of Hashtag is that it must be written in a single word and it can’t have any spaces. As Poltu wants to post some Hashtags which are not working in Facebook, can you help Poltu to fix the problems in his Hashtag?

For this problem, you will take a String as input. The first character of a string will always be '#'. The string may contain spaces, your task is to remove all the spaces in the string and print the string as a single word. If there is no space in the string, print the string same as the input.


There is only one testcase in this problem. The length of the string is at most 100 characters.


Print the input string as a single word.


#Zico is Awesome
#Shakkhor is Incredible



96% Solution Ratio

Sajid_ZEarliest, Jun '17

Sajid_ZFastest, 0.0s

n_16321Lightest, 0 B

touhidurrrShortest, 30B


Login to submit


Ad Hoc Problem. Just run a loop in the String and print those characters only which are not space.

Toph uses cookies. By continuing you agree to our Cookie Policy.