Skip to content

Tag Archives: Arrays

Given an integer N, the task is to print all the possible ways in which N can be written as the sum of two or… Read More
Given an array prices[] which denotes the prices of the stocks on different days, the task is to find the maximum profit possible after buying… Read More
Given an integer array arr[] of size N, the task is to count the total number of distinct pairs having minimum absolute difference. Examples:   Input: arr[]… Read More
Given an array arr[] of integers. The task is to find the indices of all local minima and local maxima in the given array.Examples: Input:… Read More
Given three integers R, C, N, and an array arr[] of size N. The task is to color all cells of a grid of R… Read More
Given an array arr[] consisting of N integers, the task is to modify the array such that arr[index] = index using minimum number of operations… Read More
Given an array arr[] of size N, the task is to find the number of times the array can be partitioned repetitively into two subarrays… Read More
Given an unsorted array arr[] of N integers that are in Arithmetic Progression, the task is to print the missing element from the given series.… Read More
Given two arrays arr1[] and arr2[] of N integers. We can choose any two adjacent elements from array arr1[] and swap them if they are… Read More
Given a sorted array arr[] of positive integers of size K, and an integer N, where some numbers can be inserted into the array such… Read More
Given an array arr[] of N positive integers and a number S, the task is to reach the end of the array from index S.… Read More
Given an array arr[][] containing N queries of the form [L, R], the task is to find the maximum difference between two Fibonacci numbers in… Read More
Given an array arr[] of size N and a number K. The task is to print the array arr[] after K operations such that at… Read More
Given an array arr containing integers of size N, the task is to check if the XOR of this array is even or odd Examples: … Read More

Start Your Coding Journey Now!