Question DSA-SORT-0027
EasyInsertion sort is applied to [3, 1, 2]. What does the array look like after the second element has been inserted?
- A.
[3, 1, 2]
- B.
[2, 1, 3]
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Sorting question
Insertion sort is applied to [3, 1, 2]. What does the array look like after the second element has been inserted?
[3, 1, 2]
[2, 1, 3]
Sign up free to see the answer and a step-by-step explanation.
[1, 2, 3]
[1, 3, 2]