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
912+ articles
DSA
20.5K+ posts
Recent Articles
House Robber
Last Updated: 07 September 2026
Given two integers n and k, where there are n houses arranged in a row and each house contains k amount of money, find the maximum amount of money a thief can rob without ...
read more
DSA
Summed Matrix
Last Updated: 06 September 2026
Given two integers n and q, consider a n * n matrix where the value of each cell (i, j) is i + j, with both row and column indices starting from 1. Return the number of ce...
read more
DSA
Evaluate Formulae
Last Updated: 07 September 2026
Given four integer variables a, b, c, and d, write a single expression to evaluate the following formula:\frac{a + b}{c} + dUse integer division while evaluating the expre...
read more
DSA
Minimum Squares with Full Cuts
Last Updated: 06 September 2026
Given a rectangular paper with dimensions n × m, find the minimum number of squares that can be formed by cutting the paper. Each cut must be made completely across the r...
read more
DSA
Occurrences of Consecutive 3 Numbers
Last Updated: 06 September 2026
Given an integer array arr[], count the number of distinct special integers. An integer x is called a special integer if x - 1, x, and x + 1 are all present in the array. ...
read more
DSA
Number of Matches
Last Updated: 06 September 2026
There are n players participating in a knockout tournament. The rating of the i-th player is given by arr[i], where all ratings are distinct.The tournament is conducted in...
read more
DSA
Arrays
Longest Colored Path
Last Updated: 05 September 2026
Given an undirected acyclic graph (tree) with n nodes numbered from 1 to n. Each node is colored either Red (R) or Blue (B).The colors of the nodes are given by a string s...
read more
DSA
Trees
DFS
graph-cycle
Minimum Colors Required in Special DAG
Last Updated: 06 September 2026
Given a Directed Acyclic Graph (DAG) with V vertices and E edges represented by a 2D array edges[][], where edges[i] = {u, v} represents a directed edge from vertex u to v...
read more
DSA
Students with Max Average
Last Updated: 03 September 2026
Given a string array names[] containing the names of n students and a 2D integer array marks[][], where marks[i] contains the marks of the i-th student in three subjects, ...
read more
DSA
Jumping Numbers
Last Updated: 01 September 2026
Given a positive number, n, find the largest Jumping Number that is smaller than or equal to n. A number is called a Jumping Number if all adjacent digits in it differ by ...
read more
DSA
Minimum Time to Finish Project with Dependencies
Last Updated: 31 August 2026
A company is working on a large project consisting of n modules. The time required (in months) to complete the ith module is stored in the array duration[]. The array depe...
read more
DSA
Replace a Substring with Spaces
Last Updated: 07 September 2026
An encoded string s consists of uppercase English letters. The string is formed by inserting the substring "LIE" at different positions in a secret message. Extract the or...
read more
DSA
Maximum Height Stack of Discs
Last Updated: 01 September 2026
Given two arrays r[] and h[] of same size, where r[i] and h[i] represent the radius and height of the i-th disc.A disc can be placed above another disc only if both its ra...
read more
DSA
Longest Route Between Tunnels
Last Updated: 07 September 2026
Given n tunnels connected by n - 1 tunnels in the form of a tree (connected and acyclic).Each tunnel connection is represented by three integers u, v, and w, where u and v...
read more
DSA
Gift Distribution According to Preference
Last Updated: 31 August 2026
Given a 2D array arr[][] containing the preference lists of all students, where each row represents the preference list of a student in rank order. The first gift in each ...
read more
DSA
1
2
3
4
...
1365