English

Which algorithm is similar to placing cards at the right position while playing cards?

Advertisements
Advertisements

Question

Which algorithm is similar to placing cards at the right position while playing cards?

Options

  • Bubble sort

  • Selection sort

  • Insertion sort

  • Merge sort

MCQ
Advertisements

Solution

Insertion sort

Explanation:

Insertion Sort, since it places each element of a list in the appropriate place in each pass.

shaalaa.com
Insertion Sort in Python
  Is there an error in this question or solution?
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×