# Tag Archives: circular-array

## Find the next greater element in a Circular Array

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 »

## Minimum number of colors required to color a Circular Array

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 »

## Maximum sum in circular array such that no two elements are adjacent | Set 2

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 »

## Minimize the maximum absolute difference of adjacent elements in a circular array

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 »

## Maximum circular subarray sum of size K

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 »

## Insert a Character in a Rotated String

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 »

## Arrange N elements in circular fashion such that all elements are strictly less than sum of adjacent elements

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 »

## Minimum moves to reach from i to j in a cyclic string

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 »

## Majority element in a circular array of 0’s and 1’s

Given a circular array containing only 0’s and 1’s, of size n where n = p*q (p and q are both odd integers). The task… Read More »

## Minimum bit changes in Binary Circular array to reach a index

Given a Binary Circular Array of size N elements and two positive integers x and y indicating the indices in the circular array. The task… Read More »

## Find last element after deleting every second element in array of n integers

Given a circular array of size n containing integers from 1 to n. Find the last element that would remain in the list after erasing… Read More »

## Python | Check whether two lists are circularly identical

Given two lists, check if they are circularly identical or not. Examples: Input : list1 = [10, 10, 0, 0, 10] list2 = [10, 10,… Read More »

## Length of longest increasing circular subarray

Given an array containing n numbers. The problem is to find the length of the longest contiguous subarray in a circular manner such that every… Read More »

## Circular array

An array is called circular if we consider first element as next of last element. Circular arrays are used to implement queue (Refer this and… Read More »

## Minimum absolute difference of adjacent elements in a circular array

Given n integers, which form a circle. Find the minimal absolute value of any adjacent pair. If there are many optimum solutions, output any of… Read More »