(matrix, top, bot, left, right, order)
| 64 | }; |
| 65 | |
| 66 | var addTop = (matrix, top, bot, left, right, order) => { |
| 67 | for (let col = left; col <= right; col++) { |
| 68 | /* Time O(COLS) */ |
| 69 | order.push( |
| 70 | matrix[top][col], |
| 71 | ); /* Ignore Auxilary Spsace O(ROWS * COLS) */ |
| 72 | } |
| 73 | }; |
| 74 | |
| 75 | var addRight = (matrix, top, bot, left, right, order) => { |
| 76 | for (let row = top; row <= bot; row++) { |
no test coverage detected