dimanche 22 mars 2015

SelectionSort pattern

I've been given the following code:


SelectionSort


I'm struggling to find any kind of pattern on how is this sorting method supposed to work. If anyone could explain, I'd appreciate it. Also, is there any way of doing it with only 2 "for" loops? I think the major problem is that I can't wrap my head around the 3 "for" loops to navigate a Matrix. Thank you.


Aucun commentaire:

Enregistrer un commentaire