Discussion
What will be step IV for the following input?
Input : Uniform train 36 41 horse 81 king 61
Answer: A
Correct answer: 36 Uniform 41 train 61 king horse 81
The placement order is 36, Uniform, 41, train, 61, king. Uniform and train each turn out to be in position already when their turn comes, so no step is printed for them, and the printed steps are: I brings 36 to the front, II brings 41 to position three, III brings 61 to position five, and IV brings king to position six - 36 Uniform 41 train 61 king horse 81.
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