Skip to content

# Tag Archives: circular-array

Given a circular array arr[] consisting of N integers, the task is to find the starting index of the circular array such that the prefix… Read More
Given a circular array arr[] consisting of N positive integers, the task is to modify the array by replacing each array element with the nearest… Read More
Given a circular array arr[] of size N and an index K, the task is to reverse all elements of the circular array starting from… Read More
Given a circular array arr[] of size N and two integers K and M, the task is to sort M array elements starting from the… Read More
Given a circular array arr[] consisting of N integers, the task is to print the Next Greater Element for every element of the circular array.… Read More
Given an integer N and an array arr[] consisting of M integers from the range [1, N]. (M – 1) operations need to performed. In… Read More
Given a circular array arr[] of size N, the task is to check if it is possible to make all array elements of the circular… Read More
Given a circular array arr[] of N integers such that the last element of the given array is adjacent to the first element of the… Read More
Given a circular array arr[] containing N integers, the task is to find the minimum number of colours required to colour the array element such… Read More
Given an array arr[] of positive numbers, find the maximum sum of a subsequence with the constraint that no 2 numbers in the sequence should… Read More
Given a circular array arr of N integers, the task is to minimize the maximum absolute difference of adjacent elements of the array without any… Read More
Given an array arr of size N and an integer K, the task is to find the maximum sum subarray of size k among all… Read More
Given an array of characters arr[] of size N and an integer K. You have to insert the characters into an empty string one by… Read More
Given an array of N integers, the task is to arrange them in a circular arrangement in such a way that the element is strictly… Read More
Given a cyclic string str and two integers i and j, the task is to count the minimum number of steps required to move from… Read More