Discussion of Question with ID = 014 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

"urea easy 99 51 23 09 face pace" is re-arranged according to a particular rule, in the steps mentioned below.

  1. urea 09 99 51 23 easy face pace
  2. urea 09 pace 51 23 easy face 99
  3. urea 09 pace 23 51 easy face 99
  4. urea 09 pace 23 face easy 51 99
  5. urea 09 pace 23 face 51 easy 99

If step 2 of an input is: unit 17 keys 59 54 damn hand 61, then what is step 5, if re-arrangement is done according to the above rule?

A

unit 17 keys 54 hand 59 damn 61

B

unit 17 61 59 54 damn hand keys

C

unit 17 keys 54 59 damn hand 61

D

unit 17 keys 54 hand damn 59 61

Soln.
Ans: a

In each step, English words and numbers are alternately being arranged. Strings are in descending order, and numbers are in ascending order. An English word is placed, then a number, and so on. These are the steps for re-arrangement starting with hand 17 61 59 54 damn unit keys:

  1. unit 17 61 59 54 damn hand keys
  2. unit 17 keys 59 54 damn hand 61
  3. unit 17 keys 54 59 damn hand 61
  4. unit 17 keys 54 hand damn 59 61
  5. unit 17 keys 54 hand 59 damn 61

Comments and Discussion