Question
What will be the last step for the following input?
Input: 172, 77, 49, 91, 90, 160, 41, 83 Directions : Study the following information carefully to answer the questions given below:A number sorting machine, when given an input of numbers, rearranges the numbers in a particular manner step by step as indicated below, till all the numbers are arranged in a particular order. Given below is an illustration of this arrangement. Input: 45, 163, 53, 19, 81, 139, 18, 48, 73, 96 Step I: 18, 45, 163, 53, 19, 81, 139, 48, 73, 96 Step II: 18, 45, 53, 19, 81, 139, 48, 73, 96, 163 Step III: 18, 19, 45, 53, 81, 139, 48, 73, 96, 163 Step IV: 18, 19, 45, 53, 81, 48, 73, 96, 139, 163 Step V: 18, 19, 45, 48, 53, 81, 73, 96, 139, 163 Step VI: 18, 19, 45, 48, 53, 73, 81, 96, 139, 163 (This is the final arrangement and VI is the last step for this input.)Solution
The following is the logic: Input to step I: The smallest no. comes to the leftmost position and the rest shift rightward. Step I to Step II: The largest no. comes to the rightmost position and the rest shift leftward. And thus we go on arranging the nos. on left and right alternately till the final arrangement is in ascending order. The last step will be the one arranged fully in ascending order.
If âOur markets areâ is coded as âmi ki raâ then which of the following is the code for âNow decode areâ?
In a certain code language, 'HERITAGE' is coded as '8101818202710', ' STAPLERâ is coded as '1920216121018'. What is the code for 'CARPETS' in that cod...
In a certain code language, âlive airport runawayâ is coded as âfg mn edâ and âcannot airport recipesâ is coded as âmn sz vcâ. How is ďż˝...
In a certain coded language the word RANDOM is written as QXUPLG. How will the word ERASER be written in that coded language?
What is the code for the word 'can' in the given code language?
In a certain code language âLAUGHTERâ is written as âBFHIMUVSâ , then what will be the code for the word âPLACEMENTâ in this language?
...What is the code for the word 'human' in the given code language?
If âTheir dramaâ is coded as ânl daâ then what is the code for âdramaâ?
- In a certain code language, âSENTIMENTâ is coded as âVIRXRKCLRâ then, what is the code for âSATISFIEDâ in the same code language?
In a certain code language, 'lp fg th' means 'feedback queries customer', 'fg pr mf' means 'feedback care support' and 'pq lp sx, means 'service queries...