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
Misc
7.7K+ articles
Mathematical
5.1K+ articles
Arrays
4.2K+ articles
Strings
2.1K+ articles
Greedy
1.4K+ articles
Sorting
1.1K+ articles
Dynamic Programming
1.1K+ articles
Searching
1.0K+ articles
Tree
911+ articles
DSA
20.4K+ posts
Recent Articles
Popular Articles
Count Subarrays Matching Relative Pattern
Last Updated: 19 March 2026
Given an integer array arr[] of size n and another array pattern[] of size m containing values -1, 0, and 1, count the number of subarrays of size m + 1 such that the rela...
read more
DSA
Prefix and Suffix Pair Count
Last Updated: 19 March 2026
Given an array of strings arr[], count the number of pairs (i, j) such that i j and the string arr[i] is both a prefix and a suffix of the string arr[j].Examples:Input: a...
read more
DSA
strings
Input and Output in Programming
Last Updated: 26 March 2026
Input and Output (I/O) are fundamental concepts in programming. Input allows a program to receive data from the user, files, or other sources, while output allows it to di...
read more
DSA
Input and Output
Functions in programming
Last Updated: 26 March 2026
A function is a block of code that performs a specific task and can be reused whenever needed.Avoids writing the same code again and again.Makes programs simple and easy t...
read more
DSA
function
Classes and Object in Programming
Last Updated: 24 March 2026
In Data Structures, programs often work with complex data and operations that need to be organized efficiently. Object-Oriented Programming concepts like classes and objec...
read more
DSA
Class and Object
Partition Array for Maximum Sum
Last Updated: 11 March 2026
Given an integer array arr[] and an integer k, partition the array into contiguous subarrays such that each subarray has a length of at most k. After partitioning, replace...
read more
DSA
pattern-printing
Hollow Diamond Pattern
Last Updated: 11 March 2026
Given an integer N, print the pattern shown below.Examples:Input: N=5Output: Input: N=3Output: Using Nested Loops - O(n^2) Time and O(1) SpaceIterate through 2 × n − 1 r...
read more
DSA
DSA-Coding-Pattern
Print Solid Rectangle Star Pattern
Last Updated: 13 March 2026
Given two integers n and m, print a solid rectangle pattern of stars with n rows and m columns. Each row has exactly m stars.Examples:Input: n = 3, m = 5Output: Input: n...
read more
DSA
DSA-Coding-Pattern
Printing Pyramid Patterns
Last Updated: 11 March 2026
Given a positive integer n, print a pyramid pattern consisting of stars (*) such that the number of rows equals n. The pyramid should be center-aligned as shown in the exa...
read more
DSA
DSA-Coding-Pattern
Right-Aligned Number Triangle
Last Updated: 11 March 2026
Given an integer N, print the pattern shown below.Examples:Input: N = 3Output: Input: N = 6 Output: Using Nested Loops - O(n^2) Time and O(1) SpaceThe pattern forms a rig...
read more
DSA
DSA-Coding-Pattern
Computing Point Counts from a Set of Intervals
Last Updated: 10 March 2026
Given n points on a line numbered from 1 to n, and a list of intervals, where each interval [l, r, count] adds count to every point from l to r (inclusive). Compute the to...
read more
DSA
DSA
Count Subarrays with K Equal Value Pairs
Last Updated: 14 March 2026
Given an arrays arr[] integer and a positive integer k , find the number of subarray which contains atleast k pairs with equal value. The pair is defined as two indices (i...
read more
DSA
DSA
Short Note on Bit Manipulation
Last Updated: 24 February 2026
Bit manipulation is the technique of performing operations directly on the binary representation of integers. Since computers store data in binary form (0 or 1 ), bitwise ...
read more
DSA
BIT
Short Notes on Matrix (2-D Arrays)
Last Updated: 21 February 2026
A matrix is a rectangular arrangement of elements in rows and columns. In programming, it is implemented as a 2-D array, where each element is accessed using two indices [...
read more
DSA
DSA
Short Note on Trie
Last Updated: 23 February 2026
A Trie is a special tree used to store words (or sequences of 0s and 1s). It is also called a prefix tree because it is very good at handling words that share the same sta...
read more
DSA
Trie
1
2
3
4
...
1363