Courses
Tutorials
Interview Prep
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
Similar Topics
Web Technologies
32.1K+ articles
DSA
20.4K+ articles
Python
19.6K+ articles
Experiences
15.8K+ articles
Interview Experiences
14.5K+ articles
Arrays
4.2K+ articles
Linked List
666+ articles
subarray
658+ articles
sliding-window
205+ articles
Kotak Mahindra
7+ articles
Sliding Window 23
8 posts
Recent Articles
Popular Articles
Check if Permutation of Pattern is Substring
Last Updated: 23 July 2025
Given two strings txt and pat having lowercase letters, the task is to check if any permutation of pat is a substring of txt. Examples: Input: txt = "geeks", pat = "eke"Ou...
read more
Sliding Window 23
DSA
Kotak Mahindra
Count Subarrays With At Most K Distinct Elements
Last Updated: 23 July 2025
Given an array arr[] of integers and a positive integer k, the goal is to count the total number of subarrays that contain at most k distinct (unique) elements.Examples:In...
read more
Sliding Window 23
DSA
sliding-window
Minimum Removals for Target Sum
Last Updated: 04 August 2025
Given an array of positive integers arr[] and an integer k, you can remove either the leftmost or rightmost element from the array in one operation. After each operation, ...
read more
Sliding Window 23
DSA
Arrays
Length of Longest Subarray having at Most K Frequency
Last Updated: 23 July 2025
Given an integer array arr[]and an integer K, the task is to find the length of the longest subarray such that the frequency of each element is less than or equal to K.Exa...
read more
Sliding Window 23
DSA
subarray
Maximum number that can be obtain by swapping adjacent digits of same parity
Last Updated: 20 March 2024
Given an integer N, the task is to find the maximum integer that can be obtained from the given integer such that the adjacent digits of the same parity can be swapped any...
read more
Geeks Premier League
Sliding Window 23
DSA
sliding-window
Arrays
Greedy Algorithms
Geeks Premier League 2023
Number of subarray's of K size with Even Bitwise-OR
Last Updated: 23 July 2025
You are given an array arr[] containing n integers and an integer k. Find the number of subarrays of arr with length k whose bitwise OR is even.Examples:Input: arr[] = {4,...
read more
Geeks Premier League
Sliding Window 23
DSA
sliding-window
Bitwise-OR
Minimum length of wire needed to connect all points who have value as 0 with at least one point with value 1.
Last Updated: 23 July 2025
Given two arrays Point[] and Value[] of length N, where Point[] represents the position of N points on a horizontal line. Then your task is to output the minimum length of...
read more
Geeks Premier League
Sliding Window 23
DSA
sliding-window
Arrays
Geeks Premier League 2023
Find the Max sum of Subarray of length K in a Linked List
Last Updated: 23 July 2025
Given a linked list of integers and a number K, find the maximum sum of a subarray of length K.Examples:Input: List = 1 - -2 - 3 - 4 - -1 - 2, K = 3Output: 6Explanation: T...
read more
Linked List
Sliding Window 23
DSA