Rotate image (square matrix) by 90 deg
Tue, 06 May 2025
Given an Array of two elements one of which is 0, the other is either 0 or 1. You have to make both the elements of array 0. But following are the constraints:
arr[arr[1]] = arr[!arr[1]];
arr[!arr[0]] = arr[!arr[1]];
arr[arr[1]] = arr[arr[0]];
arr[0] = arr[arr[0]]; arr[1] = arr[0];
Tue, 06 May 2025
Tue, 06 May 2025
Tue, 06 May 2025
Leave a comment