top of page


Merge Sort Tutorial
What is Merge Sort? Merge Sort is a sorting algorithm that uses a divide-and-conquer strategy to sort an array or list of elements. The algorithm works by recursively dividing the array into smaller sub-arrays until each sub-array contains a single element. It then merges these sub-arrays back together in a sorted manner. How Does Merge Sort Work? Merge Sort follows these fundamental steps: Divide : Split the array into two halves until each sub-array contains a single elemen

Samvar Shah
Dec 2, 20253 min read


The Math behind DFS
Understand the math concepts of graph traversal, recursion used in DFS and build your own spanning tree.

Samvar Shah
May 29, 20253 min read


Understanding Segment Tree Basics
Segment Tree- querying and updating

Samvar Shah
Jan 15, 20252 min read


DFS Visualizer- How does it work?
Understand the DFS process. Input your own graph and visualize DFS traversal.

Samvar Shah
Jan 1, 20252 min read


Dijkstra's Algorithm and Visualizer
Visualizer for Dijkstra's Algorithm that shows how it works step-by-step

Samvar Shah
Dec 22, 20241 min read


Kruskal's Algorithm Visualizer: How It Works
Kruskal's Algorithm (with Visualizer) used to find MST

Samvar Shah
Dec 10, 20241 min read


How to recognize DP patterns in coding problems
Recognizing DP Patterns, Base Cases, Edge Cases

Samvar Shah
Nov 22, 20243 min read


How to Define DP States
A helpful guide to define Dynamic Programming States

Samvar Shah
Nov 16, 20244 min read


Dynamic Programming: Understanding the Basics
DP basics: Optimal Substructure, Overlapping Subproblems, Recursive approach vs Efficient DP approach

Samvar Shah
Nov 14, 20243 min read


Quick Sort: A Deep Dive
Visualizing step by step, how Quick Sort algorithm arranges data

Samvar Shah
Oct 21, 20243 min read


Sorting Algorithms: Hybrid, Comparison and Non-Comparison
A quick look at Selection sort, Insertion sort, Tim Sort, Bucket Sort and other sorting algorithms

Samvar Shah
Sep 27, 20242 min read


Bubble Sort: A Deep Dive Part 2
Continuing from Part 1 of the post on Bubble Sort, here is a visualizer that helps us see how bubble sorting is carried out. Click on...

Samvar Shah
Sep 17, 20241 min read


Bubble Sort: A Deep Dive Part 1
How does Bubble Sort algorithm work - a step-by-step process view.

Samvar Shah
Sep 11, 20242 min read


Algorithms: Types and Examples
In this post, we’ll explore various types of algorithms, their characteristics, and their use cases. 1. Sorting Algorithms Sorting...

Samvar Shah
Aug 30, 20243 min read


Data Structures: A Quick Guide
Types of Data Structures and associated time and space complexities.

Samvar Shah
Aug 27, 20243 min read
bottom of page