Practice30Create account

A machine rearranges a line of words by moving the leftmost word to the right end at each step. Example - Input: 'red blue green'; Step 1: 'blue green red'; Step 2: 'green red blue'. For the input 'north south east west', what is Step 3?

Competition practiceInput-Output
  • Anorth south east west
  • Bsouth east west north
  • Ceast west north south
  • Dwest north south east

Step-by-Step Solution

Step 1: south east west north. Step 2: east west north south. Step 3: west north south east.
Answer: D) west north south east

Master this topic in 30 minutes a day.

Don't just memorise the answer — build a daily practice habit.

Practice 5 Similar Questions Free →

All Input-Output practice questions

More Input-Output practice

A machine rearranges words by moving the word that comes last in alphabetical order…A machine rearranges a line of numbers; in each step it moves the smallest number not…A machine rearranges a line of numbers; in each step it moves the largest number not yet…A machine rearranges words; in each step it moves the word that comes earliest in…A machine rearranges words; in each step it moves the word that comes last in dictionary…