I\'m looking for some pointers here as I don\'t quite know where to start researching this one.
I have a 2D matrix with 0 or 1 in each cell, such as:
1
Basic algorithm:
Hopefully, you should have a matrix with as close to an upper-right triangular region as possible.