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
25 posts
Recent Articles
Number Squares
Last Updated: 17 July 2026
Given an array arr[] of n unique numeric strings, all of the same length, find all possible arrangements of these strings that form a number square. Strings from the list ...
read more
DSA
Trie
Algorithms-Backtracking
DSA
Append Suffix
Last Updated: 16 July 2026
Given an array arr[] of strings containing lowercase English letters. For each string, if it has already appeared earlier in the array, append a suffix equal to the number...
read more
DSA
DSA
Visitors Without Pass
Last Updated: 15 July 2026
There are n visitors standing in a queue. Each visitor prefers either pass type 0 or pass type 1. There are n passes placed in a stack, where passes[0] represents the pass...
read more
DSA
DSA
First Greater Element
Last Updated: 15 July 2026
Given an array arr[] of integers, for each element arr[i], find the smallest element arr[j] such that j i and arr[j] arr[i]. If no such element exists, return -1 for tha...
read more
DSA
AVL-Tree
Segment-Tree
set
DSA
Distinct Characters In Sorted Manner
Last Updated: 14 July 2026
Given a string s, return a string containing all distinct characters from s in non-decreasing order, without using any sorting algorithm.Examples:Input: s = "abdbc"Output:...
read more
DSA
strings
set
DSA
Keypad typing
Last Updated: 10 July 2026
Given a string s consisting of lowercase English letters. Each letter corresponds to a number on a standard keypad, as shown in the figure. Replace every character in s wi...
read more
DSA
strings
DSA
Maximize Contest Score
Last Updated: 29 June 2026
Geekland is conducting a programming contest that lasts for n minutes.The contest contains en number of easy problems and hn number of hard problems.Geek will be awarded e...
read more
DSA
loop
Maths
DSA
Wine Buying and Selling
Last Updated: 01 July 2026
Given an integer array arr[] representing houses built along a straight line, each value arr[i] represents a certain number of wine bottles that a wants to buy or sell.If ...
read more
DSA
prefix
two-pointer-algorithm
DSA
Count Subsequence Occurrences with Different Characters
Last Updated: 22 May 2026
Given two strings s and w, find the number of times w appears as a subsequence of string s where every character of string s can be included in forming at most one subsequ...
read more
DSA
DSA
Bitwise OR with Next Element
Last Updated: 07 May 2026
Given an array arr[], modify the array in-place such that each element becomes the bitwise OR of itself and its next element. The last element remains unchanged as it has ...
read more
DSA
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 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 Notes on Deque
Last Updated: 21 February 2026
Deque : A linear data structure that allows insertion and deletion from both ends (front and rear). It is also called a Double Ended Queue.Unlike Queue (FIFO), Deque provi...
read more
DSA
DSA
Number of possible squares
Last Updated: 11 December 2025
Given an N Ă N chessboard. Find the total number of distinct squares that can be formed on this board.Note: A square can be of any size: 1Ă1, 2Ă2, 3Ă3, âŚ, up to NĂN.Exampl...
read more
DSA
DSA
1
2
✕