Technical Interview: Phone: Difference between id and class, Explain Threads, Client side vs Server Side rendering Face-to-Face: Design an LRU (Least Recenty Used) Cache, Given an array [[1,2,3], [4,5,6],[7,8,9], rotate it to obtain the following result [[7,4,1], [8,5,2], [9,6,3]].
Anoniem
Transpose and then reverse every row, O(N^2) time & O(1) Space.