1.

A word and number arrangement machine when given an input line of words andnumbers rearrangement them following a particular rule. The following is an illustration of input and re-arrangement. {:("INPUT- 384692317283473181523285"),("STEP I- 346812392378134712582358"),("STEP II - 123912581347235823783468"),("STEP III- 232534353746"),("STEP IV - 57781010"):} Step IV is the last step of the rearrangement. As per the rules followed in the above steps, find out in each of the following questions the appropriate steps for the given input Input : 7925 4758 2538 8561 7426 3625 6245 Which of the following would be the difference of the numbers which is 2nd from left end in step I and forth from right end in step II ?

Answer»

1138
2187
2111
2125

Solution :In the given input-output question the logic is
for STEP I-All the digits of the given numbers are arranged in ascending order WITHING the numbers
for step II- all the numbers obtained in step 1 are arranged in ascending order from the left end.
For step II- All the number obtained in step I are arranged in ascending order from the left end.
For step III First and LAST digits of the number are OMITTED.
For step IV- The digits of the numbers obtained in step III are added.
`{:("INPUT-7925475825385628742636256245"),("STEP i-25794578235835681568246723562456"),("STEP II-15682356235824562467256825794578"),("STEP-iii -5635354546565757"),("STEP -IV -1188910111212"):}`


Discussion

No Comment Found

Related InterviewSolutions