The Greedy Guide: Essential Problems and Solutions for Competitive ProgrammingSep 30, 2023·22 min read·1.4K
Optimal Play: A Dynamic Programming Approach to an Array-based Turn Game"Jul 19, 2023·18 min read·584
Tarjan Algorithm Beginner OverviewHello everyone 👋, welcome back to another article, today are going to dive into a very cool graph algorithm called "Tarjan", we are going to see what it is, how it works, what it's used for, and we are going to upsolve two very cool competitive prog...Oct 3, 2023·15 min read·672
Unveiling Dynamic Programming Solutions for 'Roads' and 'Organizing Tiles' Problems.Jun 11, 2023·13 min read·107
Decoding the 'Mario and Luigi' Challenge: An In-depth Guide to Applying BFS (Breadth-First Search)Make sure you have a solid understanding of the BFS algorithm before starting with this post by reading: https://blog.garybricks.com/bfs-and-dfs-beginners-overview-in-c The Mario & Luigi Problem Imagine a parallel universe where our beloved character...May 29, 2023·16 min read·132
Mastering The "k-Tree" Problem with Dynamic ProgrammingThe K-Tree Problem A k-Tree is a unique tree structure where each node has exactly k children nodes, extending infinitely. The tree is weighted, such that each of the k edges stemming from a node carries a weight value ranging from 1 to k. In the ill...May 20, 2023·10 min read·287
Dijkstra Algorithm - Introduction For BeginnersClassic Graph Algorithm To Find The Shortest PathDec 30, 2022·8 min read·756
Nearest Smallest Element, Classical Stack ProblemIntroduction Hello Everyone! 👋, welcome back, in this post I want to show you one of my favorite trivial stack problems and some variations, I will explain the problem, go through the most simple but inefficient answer, and then the correct and bril...Dec 16, 2022·5 min read·331
BFS and DFS Beginners Overview in c++Introduction Hello everyone! 👋, In this Post, we'll dive deeper into Graphs in programming, we'll take a look at the most common algorithms for solving competitive programming problems using Graphs, DFS, and BFS, and how to implement them in c++ whi...Dec 9, 2022·19 min read·6.7K
Graphs Introduction For BeginnersIntroduction Hello everyone! 👋, In this Post, we will take a beginner's dive into Graphs data structure in programming, we'll take a look at what are they, what are they for, the different types of graphs, the differences between graphs and trees, a...Oct 21, 2022·7 min read·318