Consider the following array and what is the status of the array after the fourth pass when we use the selection sort?

Input: 43, 37, 7, 19, 52, 13, 98

Output: 7, 13, 19, 37, 43, 52, 98

After the first pass:  7, 37, 43, 19, 52, 13, 98

1
7, 13, 43, 19, 52, 37, 98
2
7, 13, 19, 43, 52, 37, 98
3
7, 13, 19, 37, 52, 43, 98
4
7, 13, 19, 37, 43, 52, 98

Sponsored

hivanix.in

Visit

This quiz is brought to you by hivanix.in

🌐 Web App Development

Quick Navigation