top of page


Day 40 | 2 - Coloring of Graph | C++
Have you heard of a situation where we have to assign a color to nodes of a graph (or its story equivalent) and no two neighbors should...
Ayush Mahajan
Sep 27, 20223 min read


Day 39 | Ternary Search | C++
We have learned about Binary Search, now introducing ternary search. If you remember it, then you would know it works something like this...
Ayush Mahajan
Sep 26, 20222 min read


Day 38 | Trees made simpler (Basics) | C++
I want to solve some problems with you but couldn't because we need range queries for that for which I will discuss the segment tree in...
Ayush Mahajan
Sep 25, 20224 min read


Day 37 | Up-Solving 822 Div 2 A B C | C++
We are back up solving the Codeforces contest after learning about graphs recently. Today we will be solving the First 3 problems of the...
Ayush Mahajan
Sep 24, 20223 min read


Day 36 | Graph Practice | C++
We have learned some important algorithms of graphs. It is important to take break from learning new stuff and practice what you already...
Ayush Mahajan
Sep 23, 20222 min read


Day 35 | Actually Getting the Shortest Path | C++
Imagine, you open Google Maps and search for a location. And in return Maps tells you that it is 3 KM away. It is not very useful in most...
Ayush Mahajan
Sep 22, 20224 min read


Day 34 | Solving Grids like Graphs | C++
Do you also feel same as above when solving some problems. It will be marked as graphs or dfs-and-similar but there won't a graph given....
Ayush Mahajan
Sep 21, 20222 min read


Day 33 | Connected Components | C++
I know we studied DFS, BFS, and also the shortest path using BFS. You might be feeling that we are moving too fast, but graphs are...
Ayush Mahajan
Sep 20, 20224 min read


Day 32 | BFS to Find Shortest Path in Graph | C++
Yesterday, we got started with graphs. I am very for this series because the graphs are beautiful. Once you get to understand them, you...
Ayush Mahajan
Sep 19, 20224 min read


Day 31 | Graphs and BFS, DFS | C++
Welcome to Day 31, today we start learning graphs in computer science. But let's answer one question we must be asking Why do we even...
Ayush Mahajan
Sep 18, 20225 min read


Day 30 | Codeforces Contest 819 A and B | C++
I love the problems in this contest a lot, they are challenging and fun. Do not forget to try problems by yourself first. Mainak and...
Ayush Mahajan
Sep 17, 20224 min read


Day 29 | Education Round 135 C and D | C++
Continuing the up-solving contest we started yesterday, we will be solving problems C and D today. Digital Logarithm This is quite a fun...
Ayush Mahajan
Sep 16, 20227 min read


Day 28 | Educational Round 135 A, B | C++
I notice that rather than randomly picking up problems from the Codeforces, we can pick contests one by one and upsolve them. So we will...
Ayush Mahajan
Sep 15, 20223 min read


Day 27 | Solving Div3 F as a beginner | C++
Today we will learn to solve the Div3 Round 820's F as beginners. We will learn the technique and then go ahead and solve it. There are a...
Ayush Mahajan
Sep 14, 20224 min read
Day 13 | Standard Template Library (STL) | C++
You should try out these questions by yourself. Cupboards | C++ Implementation I_love_%username% | C++ Implementation Tram | C++...
Ayush Mahajan
Aug 31, 20222 min read
Day 10 | Panoramix's Prediction | C++
There are multiple good things about this question. It is easy, so you can easily solve it. This is a simple question with a lot of...
Ayush Mahajan
Aug 28, 20222 min read
Day 7 | Word | C++
We are at one week mark on consistency. Today we are solving the question 'Word': https://codeforces.com/contest/59/problem/A… Give it a...
Ayush Mahajan
Aug 28, 20221 min read


Day 1 - Young Physicist | C++
The journey starts from the simplest questions only. So starting with the first question of the list - Young Physicist. You should...
Ayush Mahajan
Aug 28, 20221 min read
bottom of page