Skip to content

Tag Archives: subarray-sum

Given an array arr[] of size N, the task is to find the maximum subarray sum that can be obtained such that the length of… Read More
Given an array A consisting of N integers, the task is to find the maximum sum of two non-overlapping subarrays of any length of the… Read More
Given two arrays A[] and B[] each of size N, the task is to minimize the sum of an array by swapping a subarray. Examples: … Read More
Given an array arr[] of size N, the task is to find the minimum difference between the maximum and the minimum subarray sum when the… Read More
Given two arrays X[] and Y[] of size N, the task is to find the longest subarray in X[] containing only unique values such that… Read More
An array is given, find length of the subarray having maximum sum. Examples :  Input : a[] = {1, -2, 1, 1, -2, 1} Output… Read More
An array is given, find length of the subarray having maximum sum. Examples :  Input : a[] = {1, -2, 1, 1, -2, 1} Output… Read More
An array is given, find length of the subarray having maximum sum. Examples :  Input : a[] = {1, -2, 1, 1, -2, 1} Output… Read More
An array is given, find length of the subarray having maximum sum. Examples :  Input : a[] = {1, -2, 1, 1, -2, 1} Output… Read More
An array is given, find length of the subarray having maximum sum. Examples :  Input : a[] = {1, -2, 1, 1, -2, 1} Output… Read More
Given an array arr[] of size N and an integer K., The task is to count the number of subarrays with unique sum with sum… Read More
Given an array of integers. Write a program to find the K-th largest sum of contiguous subarray within the array of numbers which has negative… Read More
Given an array of integers. Write a program to find the K-th largest sum of contiguous subarray within the array of numbers which has negative… Read More
Given an array of integers. Write a program to find the K-th largest sum of contiguous subarray within the array of numbers which has negative… Read More
Given an array arr[] of N integers and M update queries of the type (L, R, X), the task is to find the maximum subarray… Read More

Start Your Coding Journey Now!