MulaiMulai sekarang secara gratis

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:

Image with some cards from a Spanish deck of 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?

Latihan ini adalah bagian dari kursus

Data Structures and Algorithms in Python

Lihat Kursus

Latihan interaktif praktis

Ubah teori menjadi tindakan dengan salah satu latihan interaktif kami.

Mulai berolahraga