# Tag Archives: rotation

## Maximize count of corresponding same elements in given permutations using cyclic rotations

Given two permutations P1 and P2 of numbers from 1 to N, the task is to find the maximum count of corresponding same elements in… Read More »

## Print all possible rotations of a given Array

Given an integer array arr[] of size N, the task is to print all possible rotations of the array. Examples: Input: arr[] = {1, 2,… Read More »

## Count of rotations required to generate a sorted array

Given an array arr[], the task is to find the number of rotations required to convert the given array to sorted form. Examples: Input: arr[]… Read More »

## Find array sum using Bitwise OR after splitting given array in two halves after K circular shifts

Given an array A[] of length N, where N is an even number, the task is to answer Q independent queries where each query consists… Read More »

## Maximize count of corresponding same elements in given Arrays by Rotation

Given two arrays arr1[] and arr2[] of N integers and array arr1[] has distinct elements. The task is to find the maximum count of corresponding… Read More »

## Minimum circular rotations to obtain a given numeric string by avoiding a set of given strings

Given a numeric string target of length N and a set of numeric strings blocked, each of length N, the task is to find the… Read More »

## Range sum queries for anticlockwise rotations of Array by K indices

Given an array arr consisting of N elements and Q queries of the following two types: 1 K: For this type of query, the array… Read More »

## Check if a string can be formed from another string by at most X circular clockwise shifts

Given an integer X and two strings S1 and S2, the task is to check that string S1 can be converted to the string S2… Read More »

## Print array after it is right rotated K times

Given an Array of size N and a values K, around which we need to right rotate the array. How to quickly print the right… Read More »

## Count rotations which are divisible by 10

Given a number N, the task is to count all the rotations of the given number which are divisible by 10. Examples: Input: N =… Read More »

## Screen Orientations in Android with Examples

Screen Orientation, also known as screen rotation, is the attribute of activity element in android. When screen orientation change from one state to other, it… Read More »

## Clockwise rotation of Linked List

Given a singly singly linked list and an integer K, the task is to rotate the linked list clockwise to the right by K places.… Read More »

## Check if it is possible to make array increasing or decreasing by rotating the array

Given an array arr[] of N distinct elements, the task is to check if it is possible to make the array increasing or decreasing by… Read More »

## Count number of rotated strings which have more number of vowels in the first half than second half

Given a string str of even size N consisting of lowercase English alphabets. The task is to find the number of rotated strings of str… Read More »

## Circular rotation of an array using deque in C++

Given an array arr[] of integers and another integer D, the task is to perform D circular rotations on the array and print the modified… Read More »