Remove all white spaces from a string

Given a string that may have white spaces, write code to remove all white spaces from than string. For example: Input String: "IT IS HOT OUTSIDE" Output String: "ITISHOTOUTSIDE" Input String: " I T I S HOT " Output String: "ITISHOT" Solution: The brute-force way of solving it is to shift all the elements when […]
 •  0 comments  •  flag
Share on Twitter
Published on May 28, 2018 04:26
No comments have been added yet.