In this article, we have explored an efficient way to Rotate Image: matrix of size NxN by 90 degrees (clockwise) inplace by using a property of XOR operation.
Table ContentsIntroductionAlgorithmCode in C++ and ImplementationFinal considerations
Prerequisite: Bitwise operations, Applications of XOR operation
This is similar to Leetcode problem 48. Rotate Image.
1. Introduction
Rotation is part of Geometric Transformations, along with translation and scale.
translation is related to the ele...
Published on November 04, 2021 07:02