top of page

All of our Articles In One Place
Welcome to our Articles page, where you'll find a wealth of information on a variety of topics. From sorting to math, our of writers have you covered. Browse our collection of articles and learn something new today!


Kosaraju’s Algorithm — Breaking Down the Graph into Strong Pieces
Let’s say you’re looking at a giant network of cities. You want to find groups of cities where each one is reachable from every other in...
Jul 102 min read


Topological Sort — The “What Comes First” Guide
Let’s say you’re baking a cake 🎂. You must mix ingredients before baking , and you can’t bake before heating the oven . You need a clear...
Jul 101 min read


Bellman-Ford Algorithm—The GPS That Handles Bad Roads Too
Let’s say you're planning a road trip. Some roads give you shortcuts, but others are so bad that they cost you negative time . Dijkstra...
Jul 51 min read


Depth-First Search (DFS) — Dive Deep First, Then Backtrack
Ever gone into a maze and kept turning left until you hit a wall, then backtracked to try another path? That’s exactly how Depth-First...
Jul 41 min read


Dijkstra’s Algorithm — Finding the Shortest Path, Smartly
Let’s say you're in a city trying to get to a friend’s house 🚶♂️, and there are many roads with different travel times. You want to get...
Jul 32 min read


Kruskal’s Algorithm — Connect the Dots, But Keep It Cheap
Let’s say you want to build bridges between islands 🏝️, and your goal is to connect all of them with the least cost , without making a...
Jul 32 min read


Prim’s Algorithm: One Step at a Time
Imagine you're building roads to connect a group of villages. You want to make sure every village is connected without spending more...
Jul 22 min read


Introduction to Clustering: K-Means and Beyond
In simple words, clustering is like sorting a messy pile of socks into neat groups based on their color or pattern. In a similar way here...
Feb 133 min read


Pascals Triangle
Problem Statement: Given an integer numRows, generate the first numRows of Pascal's Triangle. In Pascal's Triangle, each number is the...
Jul 24, 20241 min read


Maximum Sum Path in Two Arrays
In this article, we will solve the problem of finding the sum of the maximum sum path in two sorted arrays having some elements in...
Jul 24, 20242 min read


Find Maximum Product Subarray
In this article, we will solve the problem of finding the maximum product subarray within a given array of integers. Problem...
Jul 24, 20241 min read


Cyclically Rotate an Array by One
In this article, we will solve the problem of cyclically rotating an array by one position to the right. Problem Statement: Given an...
Jul 24, 20241 min read


Minimum Number of Jumps to Reach End
In this article, we will solve the problem of finding the minimum number of jumps required to reach the end of an array. This simply...
Jul 24, 20241 min read


K'th Smallest Element in an Unsorted Array
In this article, we will solve the problem of finding the k'th smallest element in an unsorted array. This means that in an array, we...
Jul 24, 20241 min read


Next Greater Element
In this article, we will solve the problem of finding the next greater element for each element in an array. Problem Statement: Given an...
Jul 17, 20241 min read


Stack Permutations (Check if an Array is a Stack Permutation of Another)
In this article, we will solve the problem of checking if one array is a stack permutation of another. Problem Statement: A stack...
Jul 17, 20242 min read


Find Maximum Difference Between Nearest Left and Right Smaller Elements
In this article, we will solve the problem of finding the maximum absolute difference between the nearest left and right smaller elements...
Jul 17, 20242 min read


Check for Balanced Parenthesis
In this article, we will solve the problem of checking if a string has balanced parentheses. Problem Statement: Given a string containing...
Jul 17, 20241 min read


Implementing a Stack Using a Queue
In this article, we will learn how to implement a stack data structure using a single queue. Problem Statement: Implement a stack using a...
Jul 17, 20241 min read


Implementing a Stack using Arrays
In this article, we will learn how to implement a stack data structure using arrays. Problem Statement: Implement a stack using an array...
Jul 17, 20241 min read
bottom of page
