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 What will the addition of the numbers which is second, forth, sixth and eight from the left end in step IV ?

Answer»

32
23
38
40

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