Skip to content

Tag Archives: sliding-window

Given an array arr[] consisting of N positive integers, the task is to find a subarray of length K such that concatenation of each element… Read More
Given an array arr[] of N positive integers and an integer K, the task is to find the maximum distinct prime factors in a subarray… Read More
Given an array, arr[] of size N, two positive integers K and S, the task is to find the length of the smallest subarray of… Read More
Given an array arr[] of N integers and an integer K, the task is to find a subarray of length K with a sum of… Read More
Given a string str, the task is to find the substring of length K which occurs the maximum number of times. If more than one… Read More
Given an array arr[], of size N and a positive integer K, the task is to find a subarray of size K whose elements can… Read More
Given an array arr[] and an integer K, the task is to find a subarray of length K having a sum which is a perfect… Read More
Given an array arr[] and an integer K, the task is to find the first subarray which has a sum greater than or equal to… Read More
Given an array A[] consisting of N integers and an integer K, the task is to maximize the length of the subarray having equal elements… Read More
Data-link layer uses the techniques of error control simply to ensure and confirm that all the data frames or packets, i.e. bit streams of data,… Read More
Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and… Read More
Prerequisite: Sliding Window MedianGiven an array arr[] consisting of N integers and an integer K, the task is to find the minimum cost required to… Read More
Given an array A[] of size greater than integer K, the task is to find the total number of elements from the array which are… Read More
Given two integers N and K, the task is to find the total count of N-digit number such that the sum of every K consecutive… Read More