Sorting cards using insertion sort
You are playing cards with a Spanish deck of cards, where each card has a number. You are given the following cards:
You like having them ordered in your hands, and you realize that insertion sort is a good way of sorting them.
What sequence will you follow if you sort them in ascending order using insertion sort?
This exercise is part of the course
Data Structures and Algorithms in Python
Hands-on interactive exercise
Turn theory into action with one of our interactive exercises
