Dsa
Strings
Warm-up
Reversed Words
Given a string of words separated by spaces, write a program to reverse the order of the words. Each word should maintain its original character order. For example, the input 'hello world' should produce 'world hello'.
Example:
Input:
hello world
Output:
world hello
Key concepts
stringsbasic manipulation
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