Your Submissions
You haven't submitted any code for this challenge yet. Solve the problem by passing all the test cases, and your submissions will appear here.
xxxxxxxxxx41
var assert = require('assert');function find_diagonal_order(matrix) { //fill in the solution return matrix}try { assert.deepEqual(find_diagonal_order([ [1, 2, 3], [4, 5, 6], [7, 8, 9] ]), [1, 2, 4, 7, 5, 3, 6, 8, 9]); console.log('PASSED: ' + "find_diagonal_order([[1,2,3],[4,5,6],[7,8,9]]) should return `[1,2,4,7,5,3,6,8,9]`");} catch (err) { console.log(err);}try { assert.deepEqual(find_diagonal_order([ [1, 2], [3, 4] ]), [1, 2, 3, 4]); console.log('PASSED: ' + "find_diagonal_order([[1,2],[3,4]]) should return `[1,2,3,4]`");OUTPUT
Results will appear here.