top of page
![Day 44 | Binary Search Practice [Leetcode] | C++](https://static.wixstatic.com/media/fbea2a_167f1b66234f4d30b91bcf5b517f83f3~mv2.jpg/v1/fill/w_333,h_250,fp_0.50_0.50,q_30,blur_30,enc_avif,quality_auto/fbea2a_167f1b66234f4d30b91bcf5b517f83f3~mv2.webp)
![Day 44 | Binary Search Practice [Leetcode] | C++](https://static.wixstatic.com/media/fbea2a_167f1b66234f4d30b91bcf5b517f83f3~mv2.jpg/v1/fill/w_454,h_341,fp_0.50_0.50,q_90,enc_avif,quality_auto/fbea2a_167f1b66234f4d30b91bcf5b517f83f3~mv2.webp)
Day 44 | Binary Search Practice [Leetcode] | C++
Search Insert Position [Easy] Sqrt(X) [Easy] Two Sum II - Input Array Is Sorted [Medium] Minimum Size Subarray Sum [Medium] Please like...
Ayush Mahajan
Oct 1, 20221 min read
Â
Â
Â
![Day 43 | Graph and Tree Practice [Leetcode] II | C++](https://static.wixstatic.com/media/fbea2a_361d6f7cd90c431b9f25518e1503da94~mv2.jpg/v1/fill/w_333,h_250,fp_0.50_0.50,q_30,blur_30,enc_avif,quality_auto/fbea2a_361d6f7cd90c431b9f25518e1503da94~mv2.webp)
![Day 43 | Graph and Tree Practice [Leetcode] II | C++](https://static.wixstatic.com/media/fbea2a_361d6f7cd90c431b9f25518e1503da94~mv2.jpg/v1/fill/w_454,h_341,fp_0.50_0.50,q_90,enc_avif,quality_auto/fbea2a_361d6f7cd90c431b9f25518e1503da94~mv2.webp)
Day 43 | Graph and Tree Practice [Leetcode] II | C++
Find Eventual Safe States Add One Row to Tree Maximum Width of Binary Tree All Nodes Distance K in Binary Tree Please like and share my...
Ayush Mahajan
Sep 30, 20221 min read
Â
Â
Â
![Day 42 | Graph Practice [LeetCode] | C++](https://static.wixstatic.com/media/fbea2a_6570bb28577149f19db06704d542789a~mv2.jpg/v1/fill/w_333,h_250,fp_0.50_0.50,q_30,blur_30,enc_avif,quality_auto/fbea2a_6570bb28577149f19db06704d542789a~mv2.webp)
![Day 42 | Graph Practice [LeetCode] | C++](https://static.wixstatic.com/media/fbea2a_6570bb28577149f19db06704d542789a~mv2.jpg/v1/fill/w_454,h_341,fp_0.50_0.50,q_90,enc_avif,quality_auto/fbea2a_6570bb28577149f19db06704d542789a~mv2.webp)
Day 42 | Graph Practice [LeetCode] | C++
Today we will be practicing Leetcode problems from what we have learned so far. So let's get started with solving a few problems Number...
Ayush Mahajan
Sep 29, 20221 min read
Â
Â
Â


Day 41 | Cycle Detection in Graphs | C++
Detecting the cycle and printing it is a very important skill you will need. It might either be to actually find a cycle as an answer or...
Ayush Mahajan
Sep 28, 20223 min read
Â
Â
Â


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 26 | Upsolving Codeforces Div3 Round 820 (D|E) | C++
Yesterday we solved Div3 A, B, and C. Today we are going to upsolve problems D and E. The first question you should ask is if I couldn't...
Ayush Mahajan
Sep 13, 20224 min read
Â
Â
Â


Day 25 | Codeforces Div3 Round 820 (A|B|C) | C++
Let's solve Codeforces round 820 A, B, and C today. I will also post how to solve interactive E tomorrow once, I understand why it is...
Ayush Mahajan
Sep 12, 20223 min read
Â
Â
Â
bottom of page