posted 6 years ago
Task is to sort each column of a matrix in an ascending and descending
order interchangeably so that for instance first column is sorted in
ascending order, second in descending, third in ascending and so on...
**Nothing but plain arrays and matrices can be used, so no Hashmaps,Sets,Lists nor anything similar.**
So far I have this, it is just an idea but I must admit I have stuck here.