Given an array arr[] containing N elements, the task is to remove a subarray of minimum possible length from the given array such that all… Read More

# Tag Archives: sliding-window

Given an array arr[] and an integer K, the task is to find the maximize the sum of K elements in the Array by taking… Read More

Given an integer array nums and an integer K, The task is to find the maximum sum of a non-empty subsequence of the array such… Read More

Given an array, the task is to remove total k elements from corners to maximize the sum of remaining elements. For example, if we k… Read More

Given a binary matrix mat[][] and an integer K, the task is to find the submatrix of size K*K such that it contains maximum number… Read More

Set 1: Sliding Window Maximum (Maximum of all subarrays of size k).Given an array arr of size N and an integer K, the task is… Read More

Given an array of integer arr[] and an integer k, the task is to find the median of each window of size k starting from… Read More

Given an array arr[] of N elements and an integer K, the task is to make any K elements of the array equal by performing… Read More