2021年4月7日星期三

how to do this selection sort

enter image description here

The first block of the console window is the original array

It should be sorted by the first column, if the value of the first column is same, then compare the value of their second column

The correct output should be:

A/a A/b A/c B/a C/a

I've stuck here for three hours, and I've tried to debug it, yet I couldn't figure it out.

https://stackoverflow.com/questions/66996041/how-to-do-this-selection-sort April 08, 2021 at 09:07AM

没有评论:

发表评论