# Tag Archives: rotation

Given a binary string S of length N and an integer X, the task is to check if there exists a right wise circular rotation… Read More
Given a binary matrix Mat[][] of size N*N, the task is to find the minimum number of flips to be performed such that the matrix… Read More
Given a string S of length N, the task is to find the maximum possible product of the first and the last character of the… Read More
Given a singly linked list and two integers X and Y, the task is to left rotate the linked list by X in groups of… Read More
Given an array arr[ ] with even length N, the task is to find the number of cyclic shifts (rotations) possible for this array, such… Read More
Given an array arr[] of size N, the array can be rotated any number of times such that after rotation, each element of the array… Read More
Given an array arr[] of size N and a value K (-10^5<K<10^5), the task is to print the array rotated by K times to the… Read More
Given a numeric string S, the task is to find the maximum length of a subsequence having its left rotation equal to its right rotation.… Read More
Given non-negative integers K, M, and an array arr[ ] consisting of N elements, the task is to find the Mth element of the array… Read More
Given non-negative integers K, M, and an array arr[ ] consisting of N elements, the task is to find the Mth element of the array… Read More
Python3 # Python3 program to implement # the above approach   # Function to return Mth element of # array after k right rotations def… Read More
Given non-negative integers K, M, and an array arr[ ] consisting of N elements, the task is to find the Mth element of the array… Read More
Given non-negative integers K, M, and an array arr[] with N elements find the Mth element of the array after K left rotations. Examples: Input:… Read More
Given non-negative integers K, M, and an array arr[] with N elements find the Mth element of the array after K left rotations. Examples: Input:… Read More
Given non-negative integers K, M, and an array arr[] with N elements find the Mth element of the array after K left rotations. Examples: Input:… Read More