(matrix, top, bot, left, right, order)
| 73 | }; |
| 74 | |
| 75 | var addRight = (matrix, top, bot, left, right, order) => { |
| 76 | for (let row = top; row <= bot; row++) { |
| 77 | /* Time O(ROWS) */ |
| 78 | order.push( |
| 79 | matrix[row][right], |
| 80 | ); /* Ignore Auxilary Spsace O(ROWS * COLS) */ |
| 81 | } |
| 82 | }; |
| 83 | |
| 84 | var addBot = (matrix, top, bot, left, right, order) => { |
| 85 | for (let col = right; left <= col; col--) { |
no test coverage detected