Discussion
What will be step III for the following input?
Input : Uniform train 36 41 horse 81 king 61
Answer: B
Correct answer: 36 Uniform 41 train 61 horse 81 king
The placement order is 36, Uniform, 41, train, 61, king, and the machine prints a step only when something actually moves. Step I brings 36 to the front; Uniform is then already in position two, so step II brings 41 to position three; train is already in position four, so step III brings 61 to position five, giving 36 Uniform 41 train 61 horse 81 king.
No comment is present. Be the first to comment.
Loading…
Post your comment
Please log in or register to post a comment.
Examination Categories
- SSC Exams
- Banking Exams
- Teaching Exams
- Civil Services Exams
- Railways Exams
- Engineering Recruitment Exams
- Defence Exams
- State Government Exams
- Police Exams
- Insurance Exams
- Nursing Exams
- Other Government Exams
- NRA CET
- PG Entrance Exams
- Campus Placement
- MBA Entrance Exams
- CUET and UG Entrance
- Judiciary Exams
- Regulatory Body Exams
- Software Development