(matrix, top, bot, left, right, order)
| 82 | }; |
| 83 | |
| 84 | var addBot = (matrix, top, bot, left, right, order) => { |
| 85 | for (let col = right; left <= col; col--) { |
| 86 | /* Time O(COLS) */ |
| 87 | order.push( |
| 88 | matrix[bot][col], |
| 89 | ); /* Ignore Auxilary Spsace O(ROWS * COLS) */ |
| 90 | } |
| 91 | }; |
| 92 | |
| 93 | var addLeft = (matrix, top, bot, left, right, order) => { |
| 94 | for (let row = bot; top <= row; row--) { |
no test coverage detected