Reverse The Word
CodeChefOpen on judge ↗
Given a long sentence, reverse the $first$ $word$ of the sentence individually in the sentence itself. For example, if the sentence is- $\text{"College of Engineering Roorkee"}$, the output should be-$\text{"egelloC of Engineering Roorkee"}$. ###Input: The only line of input contains the sentence $s$, upon which the above-mentioned operation is to be performed. ###Output: Output the modified sen
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