Company interview: “Given an m x n matrix, return all elements of the matrix in spiral order.” Company source code: if (isValid) { return true; } else { return false; }
4
15
106
0
3
@JavaCodeDaily Everyone knows that can be simplified to: return isValid ? true : false; /s
@JavaCodeDaily This is my least favorite interview question.