Dsa
Strings
Easy
Sentence Reversal
You need to reverse the order of words in a given sentence while preserving the order of characters within each word. A word is defined as a sequence of characters separated by spaces. The output should be the reversed sentence with the words in their original character order.
Example Input:
Hello World
Example Output:
World Hello
Key concepts
stringsreversalparsing
Practise this out loud — free
Start a mock interview on THIS exact question — a voice AI interviewer opens with it, pushes back like a real onsite, then hands you an instant scorecard.
🎙 Practise this question now