Skip to content

Tag Archives: sliding-window

Given an array arr[] of size N and integer Y, the task is to find a minimum of all the differences between the maximum and… Read More
Prerequisites: Policy based data structure, Sliding window technique.Given an array of integer arr[] and an integer K, the task is to find the median of… Read More
Given an integer array arr[] of size N and two integer L and R. The task is to find the maximum sum subarray of size… Read More
Given a string str of size N and an integer K, the task is to generate a string whose substrings of size K can be… Read More
Given an array arr[] of size N and an integer K, the task is to find maximum absolute difference between the sum of subarrays of… Read More
Given a binary string str of size N and a positive integer K, the task is to find the minimum number of flips required to… Read More
Given an array of integers arr[] and a positive integer K, the task is to find the count of the longest possible subarrays with sum… Read More
Given string str of the lowercase alphabet and an integer K, the task is to count all substrings of length K which have exactly K… Read More
Given an array arr[] and an integer K, the task is to count subarrays of size K in which every element appears an even number… Read More
Given a binary string S of size N and an integer K. The task is to find the maximum number of set bit appears in… Read More
Given an array arr[] containing N elements, the task is to count the number of sub-arrays whose XOR of all the elements is equal to… Read More
Given string str consisting of only lowercase English alphabets, the task is to find the substring of the smallest length which contains all the vowels.… Read More
We generally study most of the algorithmic techniques in academics like Searching, Sorting, Dynamic Programming, Greedy Algorithms, Divide and Conquer, Backtracking, etc. But below techniques… Read More