Discussion of Question with ID = 007 under Passwords-and-Inputs

This is the discussion forum for this question. If you find any mistakes in the solution, or if you have a better solution, then this is the right place to discuss. A healthy discussion helps all of us, so you are requested to be polite and soft, even if you disagree with the views of others. The question and its current solution has also been given on this page.

Advertisement

Question

"it is one of the easiest ways to spot text that requires variety" is re-arranged according to a particular rule, in the steps mentioned below.

  1. requires is one of the easiest ways to spot text that it variety
  2. requires easiest one of the is ways to spot text that it variety
  3. requires easiest variety of the is ways to spot text that it one
  4. requires easiest variety ways the is of to spot text that it one
  5. requires easiest variety ways spot is of to the text that it one
  6. requires easiest variety ways spot text of to the is that it one
  7. requires easiest variety ways spot text that to the is of it one
  8. requires easiest variety ways spot text that the to is of it one
  9. requires easiest variety ways spot text that the one is of it to

If an input is: several sentences of the same length can make for bland writing, then how many steps are required if re-arrangement is done according to the above rule?

A

6

B

5

C

4

D

7

Soln.
Ans: a

In each step, the longest words are being moved to the left. These are the steps for re-arrangement starting with sentences several of the same length can make for bland writing:

  1. sentences several of the same length can make for bland writing
  2. sentences several writing the same length can make for bland of
  3. sentences several writing length same the can make for bland of
  4. sentences several writing length bland the can make for same of
  5. sentences several writing length bland make can the for same of
  6. sentences several writing length bland make same the for can of

Comments and Discussion