Matrix Spiral
There’s a sort of running gag at work: “Hey, look at this cool thing I wrote.” “Yes, but can you do it in one line of python?” This happened when we started talking about interview questions that my manager likes to use. His current favorite is: Given a matrix, list the elements in clock-wise spiral order. For example:
...