A word arrangement machine when given an input line of words rearranges them following a…
- User
A word arrangement machine when given an input line of words rearranges them following a particular rule in each step. The following is an illustration of in
Input: truck road house cart box game
Step 1: box truck road house cart game
Step II: box truck cart road house game
Step III: box truck cart road game house
Based on this answer the following question:
Input: apple earth fun sun tea parrot
What is the second word from the right in step II of the rearrangement of the above input?
Pick ONE option
Fun
54
55
6
Earth
Sun
Parrot
- Assistant
The rearrangement pattern observed in the given example follows these steps:
- Arrange the words alphabetically.
- Alternate placement: Start placing words alternately from the beginning and the end of the alphabetically ordered list.
Let's apply this to the new input:
Input: apple, earth, fun, sun, tea, parrot
-
Alphabetical Order:
- apple
- earth
- fun
- parrot
- sun
- tea
-
Alternate Placement:
- Position 1: apple (from the start)
- Position 2: tea (from the end)
- Position 3: earth (next from the start)
- Position 4: sun (next from the end)
- Position 5: fun (next from the start)
- Position 6: parrot (next from the end)
Rearranged List:
- apple
- tea
- earth
- sun
- fun
- parrot
Second word from the right in Step II is at position 5: fun.
Answer: Fun