Text Editor Software
CodeChefOpen on judge ↗
A company wants to make a text editor software that prints a space between two characters when there is no space between them and if there is space between two characters eliminate the space. Write a program to implement this. ###Input: - The single line contains a string input ###Output: - The single line contains an output string ###Constraints - $4 \leq length of input string \
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start