You don’t learn cool things everyday. And today is not everyday, learnt this neat trick to rotate a matrix with a one liner in #python!!!
b = np.array(zip(*a[::-1]))
Simple and powerful. Waiting for a chance to use it somewhere in actual code…
Want to understand what’s happening visit this page by Peter Norvig, director of research Google!!