Skip to content

Category Archives: Arrays

Given a positive array arr[] of size N (2 ≤ N ≤ 105) and a positive integer K, the task is to minimize the maximum… Read More
Given an arr[] of length N. Then the task is to find minimum steps to make all the elements of the given equal. 2 types… Read More
What is Array Tag? Array tag allows you to store values with single memory and read elements as an array. Array Tag only points out… Read More
Given an array arr[] consisting of N non-negative integers. The task is to find a rearrangement of the array such that the prefix OR for… Read More
Given an array arr[] of size N. The task is to find an array of size N such that the ith element is the summation… Read More
Given an array arr[] consisting of N  integers and an array Q[][3] consisting of M queries of the form [L, R, U], the task for… Read More
Given a positive integer array arr[] of size N, the task is to find the longest subarray such that the bitwise AND of every pair… Read More
Given an array arr[] of size N and you need to fill another empty array of size N with positive integers. Each element in the… Read More
Given an integer N (N ≥ 5) Then assume you have two infinite arrays X and Y where X[] is an array of element N… Read More
Given an array arr[] of size, N, the task is to maximize the score to reduce the array to a single element by replacing any… Read More
Given an arr[] of binary digits. Consider two players X and Y are playing a game where in one move a player can remove any… Read More
Given an array A[] of size N. In one operation only one subarray can be selected and replaced with the sum of the subarray. The… Read More
You are given X[] of length 2*N, Where N will always be odd, the task is to construct an array Y[] of length N from… Read More
Given N points moving along the X axis to the right whose initial position and speed are given in two arrays X[] (sorted in increasing… Read More
Given the cost[] and profit[] of N stocks and K tickets, the task is to find the maximum total profit that can be obtained from… Read More

Start Your Coding Journey Now!