What should we do if we traverse the matrix like this?

how to program to traverse the matrix in this way.
for ease of understanding, I describe it this way, given a matrix

1 2 3 4
5 6 7 8
9 a b c
d e f g

I need to traverse the data in the lower left half of it, traversing diagonally first, followed by top-to-bottom traversal, such as 1, 6, b, g, 5, a, f, 9, e, d.



2

var cntRow = 4;
var cntCol = 4;
var m = [
    [1,2,3,4],
    [5,6,7,8],
    [9,'a','b','c'],
    ['d','e','f','g'],
];
var arr = [];
for(i=0; i<cntRow; iPP)
{
    for(k=0, j=0; k<cntRow - i; kPP)
    {
        arr.push(m[i+j][jPP]);
    }
}
console.log(arr);
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e5d1a5-456ee.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e5d1a5-456ee.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?