Skip to content
Courses
DSA to Development
Machine Learning & Data Science
Generative AI & ChatGPT
Become AWS Certified
DSA Courses
Data Structure & Algorithm(C++/JAVA)
Data Structure & Algorithm(Python)
Data Structure & Algorithm(JavaScript)
Programming Languages
CPP
Java
Python
JavaScript
C
All Courses
Tutorials
Python Tutorial
Taking Input in Python
Python Operators
Python Data Types
Python Loops and Control Flow
Python Conditional Statements
Python Loops
Python Functions
Python OOPS Concept
Python Data Structures
Python Exception Handling
Python File Handling
Python Exercises
Java
Learn Java Programming Language
Java Collections
Java 8 Tutorial
Java Programs
Java Interview Questions
Java Interview Questions
Core Java Interview Questions-Freshers
Java Multithreading Interview Questions
OOPs Interview Questions and Answers
Java Exercises
Java Quiz
Java Quiz
Core Java MCQ
Java Projects
Advance Java
Spring Tutorial
Spring Boot Tutorial
Spring Boot Interview Questions
Spring MVC Tutorial
Spring MVC Interview Questions
Hibernate Tutorial
Hibernate Interview Questions
Programming Languages
JavaScript
C++
R Tutorial
SQL
PHP
C#
C
Scala
Perl
Go Language
Kotlin
System Design
System Design Tutorial
Software Design Patterns
System Design Roadmap
Top 10 System Design Interview Questions and Answers
Interview Corner
Company Preparation
Top Topics
Practice Company Questions
Interview Experiences
Experienced Interviews
Internship Interviews
Competitive Programming
Multiple Choice Quizzes
Aptitude for Placements
Computer Science Subjects
Operating System
DBMS
Computer Networks
Engineering Mathematics
Computer Organization and Architecture
Theory of Computation
Compiler Design
Digital Logic
Software Engineering
DevOps
GIT
AWS
Docker
Kubernetes
Microsoft Azure Tutorial
Google Cloud Platform
Linux
Linux Tutorial
Linux Commands A-Z
Linux Commands Cheatsheet
File Permission Commands
Linux System Administration
Linux File System
Linux Shell Scripting
Linux Networking
Linux Interview Questions
Software Testing
Software Testing Tutorial
Software Engineering Tutorial
Testing Interview Questions
Jira
Databases
DBMS Tutorial
SQL Tutorial
PostgreSQL Tutorial
MongoDB Tutorial
SQL Interview Questions
MySQL Interview Questions
PL/SQL Interview Questions
Android
Android Tutorial
Android Studio Tutorial
Kotlin For Android
Android Projects
Android Interview Questions
6 Weeks of Android App Development
Excel
MS Excel Tutorial
Introduction to MS Excel
Data Analysis in Excel
Basic Excel Formulas & Functions
Data Analysis in Advanced Excel
Workbooks
Statistical Functions
Data Visualization in Excel
Pivot Tables in Excel
Excel Spreadsheets in Python
Basic Excel Shortcuts
Mathematics
Number System
Algebra
Linear Algebra
Trigonometry
Set Theory
Statistics
Probability
Geometry
Mensuration
Logarithms
Calculus
DSA
Data Structures
Arrays
Matrix
Strings
Linked List
Stack
Queue
Tree
Heap
Hashing
Graph
Set Data Structure
Map Data Structure
Advanced Data Structure
Data Structures Tutorial
Algorithms
Analysis of Algorithms
Design and Analysis of Algorithms
Asymptotic Analysis
Asymptotic Notations
Worst, Average and Best Cases
Searching Algorithms
Linear Search
Binary Search
Searching Algorithms Tutorial
Sorting Algorithms
Selection Sort
Bubble Sort
Insertion Sort
Merge Sort
Quick Sort
Heap Sort
Counting Sort
Radix Sort
Bucket Sort
Sorting Algorithms Tutorial
Greedy Algorithms
Dynamic Programming
Graph Algorithms
Pattern Searching
Recursion
Backtracking
Divide and Conquer
Mathematical Algorithms
Geometric Algorithms
Bitwise Algorithms
Randomized Algorithms
Branch and Bound
Algorithms Tutorial
DSA Tutorial
Practice
All DSA Problems
Problem of the Day
Company Wise Coding Practice
Amazon
Microsoft
Flipkart
Explore All
GfG SDE Sheet
Practice Problems Difficulty Wise
School
Basic
Easy
Medium
Hard
Language Wise Coding Practice
CPP
Java
Python
Curated DSA Lists
Beginner's DSA Sheet
Top 50 Array Problems
Top 50 String Problems
Top 50 DP Problems
Top 50 Graph Problems
Top 50 Tree Problems
Competitive Programming
Company Wise SDE Sheets
Facebook SDE Sheet
Amazon SDE Sheet
Apple SDE Sheet
Netflix SDE Sheet
Google SDE Sheet
DSA Cheat Sheets
SDE Sheet
DSA Sheet for Beginners
FAANG Coding Sheet
Product-Based Coding Sheet
Company-Wise Preparation Sheet
Top Interview Questions
Puzzles
All Puzzles
Top 100 Puzzles Asked In Interviews
Top 20 Puzzles Commonly Asked During SDE Interviews
Data Science
Python Tutorial
R Tutorial
Machine Learning
Data Science using Python
Data Science using R
Data Science Packages
Pandas Tutorial
NumPy Tutorial
Data Visualization
Python Data Visualization Tutorial
Data Visualization with R
Data Analysis
Data Analysis with Python
Data Analysis with R
Deep Learning
NLP Tutorial
Web Tech
HTML Tutorial
CSS Tutorial
JavaScript Tutorial
PHP Tutorial
ReactJS Tutorial
NodeJS Tutorial
Bootstrap Tutorial
Typescript
Web Development Using Python
Django
Django Tutorial
Django Projects
Django Interview Questions
Flask
Flask Tutorial
Flask Projects
Flask Interview Questions
Postman
Github
Cheat Sheets
HTML Cheat Sheet
CSS Cheat Sheet
JavaScript Cheat Sheet
React Cheat Sheet
Angular Cheat Sheet
jQuery Cheat Sheet
Bootstrap Cheat Sheet
Learn Complete Web Development
Trending Now
DSA
Web Tech
Foundational Courses
Data Science
Practice Problem
Python
Machine Learning
JavaScript
System Design
Django
DevOps Tutorial
Java
C
C++
ReactJS
NodeJS
CP Live
Aptitude
Puzzles
Projects
▲
Similar Topics
DSA
22.3k+ articles
Mathematical
7.7k+ articles
Arrays
6.4k+ articles
Strings
3.2k+ articles
Competitive Programming
2.3k+ articles
Greedy
2k+ articles
Searching
1.7k+ articles
Hash
1.2k+ articles
subarray
640+ articles
subarray-sum
180+ articles
sliding-window
180+ posts
Popular Articles
Recent Articles
Error Control in Data Link Layer
Last Updated: 28 December 2024
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 d
...read more
sliding-window
Computer Networks
GATE CS
Data Link Layer
Count Occurrences of Anagrams
Last Updated: 16 April 2024
Given a word and a text, return the count of the occurrences of anagrams of the word in the text(For eg: anagrams of word for are for, ofr,
...read more
Strings
Pattern Searching
anagram
sliding-window
Arrays
frequency-counting
DSA
Length of the smallest sub-string consisting of maximum distinct characters
Last Updated: 05 August 2024
Given a string of length N, find the length of the smallest sub-string consisting of maximum distinct characters. Note : Our output can have
...read more
Arrays
Strings
Amazon
Hash
sliding-window
Dailyhunt
DSA
Similar Topics
DSA
22.3k+ articles
Mathematical
7.7k+ articles
Arrays
6.4k+ articles
Strings
3.2k+ articles
Competitive Programming
2.3k+ articles
Greedy
2k+ articles
Searching
1.7k+ articles
Hash
1.2k+ articles
subarray
640+ articles
subarray-sum
180+ articles
First negative integer in every window of size k
Last Updated: 20 December 2023
Given an array and a positive integer k, find the first negative integer for each window(contiguous subarray) of size k. If a window does no
...read more
Arrays
Amazon
Queue
sliding-window
DSA
Smallest window that contains all characters of string itself
Last Updated: 03 July 2024
Given a string, find the smallest window length with all distinct characters of the given string. For eg. str = “aabcbcdbca”, then the r
...read more
Arrays
Strings
Microsoft
Amazon
Hash
sliding-window
Dailyhunt
DSA
Find maximum (or minimum) sum of a subarray of size k
Last Updated: 05 August 2024
Given an array of integers and a number k, find the maximum sum of a subarray of size k.Examples:Input : arr[] = {100, 200, 300, 400}, k = 2
...read more
Arrays
subarray
sliding-window
subarray-sum
DSA
Sum of minimum and maximum elements of all subarrays of size k.
Last Updated: 13 December 2024
Given an array of both positive and negative integers, the task is to compute sum of minimum and maximum elements of all sub-array of size k
...read more
Arrays
Queue
subarray
sliding-window
DSA
Maximum of minimums of every window size in a given array
Last Updated: 03 November 2024
Given an integer array arr[] of size n, find the maximum of the minimums for every window size in the given array. The window size varies fr
...read more
Amazon
Stack
sliding-window
DSA
Count Distinct Elements In Every Window of Size K
Last Updated: 30 December 2024
Given an array arr[] of size n and an integer k, return the count of distinct numbers in all windows of size k.Examples:Input: arr[] = [1, 2
...read more
Arrays
Microsoft
Amazon
Accolite
Hash
sliding-window
DSA
Climbing stairs to reach the top
Last Updated: 11 January 2025
There are n stairs, and a person standing at the bottom wants to climb stairs to reach the top. The person can climb either 1 stair or 2 sta
...read more
Amazon
Morgan Stanley
Samsung
Snapdeal
Accolite
Intel
Linkedin
Dynamic Programming
Mathematical
sliding-window
DSA
Anagram Substring Search (Or Search for all permutations)
Last Updated: 04 October 2024
Given a text txt and a pattern pat of size n and m respectively, the task is to find all occurrences of pat and its permutations (or anagram
...read more
Arrays
Microsoft
Amazon
Pattern Searching
permutation
anagram
sliding-window
DSA
Smallest subarray with sum greater than a given value
Last Updated: 26 December 2024
Given an array arr[] of integers and a number x, the task is to find the smallest subarray with a sum strictly greater than x.Examples:Input
...read more
Arrays
Amazon
Facebook
Goldman Sachs
Accolite
subarray
sliding-window
subarray-sum
DSA
Subarray with Given Sum
Last Updated: 30 December 2024
Given a 1-based indexing array arr[] of non-negative integers and an integer sum. You mainly need to return the left and right indexes(1-bas
...read more
Arrays
Amazon
Google
Morgan Stanley
Facebook
Zoho
Visa
FactSet
subarray
sliding-window
subarray-sum
DSA
Sliding Window Maximum (Maximum of all subarrays of size K)
Last Updated: 23 September 2024
Given an array and an integer K, find the maximum for each and every contiguous subarray of size K.Examples :Input: arr[] = {1, 2, 3, 1, 4,
...read more
Arrays
Amazon
Flipkart
Directi
Zoho
SAP Labs
Queue
Heap
sliding-window
DSA
Smallest window in a String containing all characters of other String
Last Updated: 24 September 2024
Given two strings S (length m) and P (length n), the task is to find the smallest substring in S that contains all characters of P, includin
...read more
Strings
Amazon
MakeMyTrip
Codenation
FactSet
Hash
Streamoid Technologies
sliding-window
DSA
1
2
3
4
5
6
7
8
>>
Last
1
2
3
4
5
6
>>
Last
1
2
3
4
>>
Last
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !