Well, Given a matrix of integers and two natural numbers M and N.
Consider
a subset of the columns of the matrix in which there is at least one element, which, when divided by M, gives the remainder of N. Arrange the columns of the matrix in descending order within the given subset, assuming that the comparison of the columns corresponds to the comparison of their minimum elements. Columns of the matrix that are not included in this subset
must retain their location in the matrix.
I have my code it works . But here I create an array where I put the sorted columns and at the end all the others. AND I NEED to work only with the main a8 array AND SO THAT THE COLUMNS I DON'T NEED REMAIN IN PLACE!! That's exactly what I have a problem with, and sort the ones I need relative to each other. Please redo some of my code! I can't think at all anymore! Help