Discussion
What should be the last step of the following output? Input : 158 279 348 28 326 236
Answer: A
Correct answer: 348 28 326 158 279 236
The order is 348, 28, 326, 158, 279, 236. The first three moves give 348 158 279 28 326 236, then 348 28 158 279 326 236, then 348 28 326 158 279 236. At that point 158, 279 and 236 are already in positions four, five and six, so nothing further moves and step 3 is the last.
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