top of page


Day 24 | Minimum Varied Number | C++
Minimum Varied Number is a fun greedy problem. Some observations We can use each digit once and we need the smallest possible number. To...
Ayush Mahajan
Sep 11, 20221 min read


Day 23 | Greedy | Sort Zero | C++
Sort Zero is a good greedy problem to practice implementation skills. Let's understand the problem first We can select any number and...
Ayush Mahajan
Sep 10, 20222 min read


Day 22 | Fighting Tournament | C++
Today I found a gem of a question, it is fun, interesting, and feels good to implement. You can attempt the problem yourself first here -...
Ayush Mahajan
Sep 9, 20223 min read


Day 21 | Dynamic Programming - 1| Covered Path | C++
Hello! Today we finish 3rd week of our consistency, and there let's reward ourselves by stepping into one of the most important...
Ayush Mahajan
Sep 8, 20223 min read


Day 20 | Phoenix and Towers | C++
This is a good greedy problem. This problem asks us to place N blocks in M towers such that no two blocks have a height difference...
Ayush Mahajan
Sep 7, 20223 min read


Day 19 | Recursion | C++
We are moving ahead and learning algorithms, but the basics should be strong before we do it. We will soon see what dynamic programming...
Ayush Mahajan
Sep 6, 20224 min read


Day 18 | Dominant Character | C++
I had fun solving this problem today. Don't forget to try it yourself. Problem Link This problem teaches us that pen and paper (or...
Ayush Mahajan
Sep 5, 20222 min read


Day 17 | Grandma Laura and Apples | Lucky Tickets | C++
Today we will be solving 2 problems, both have a mathematical approach to the solution0 Grandma Laura and Apples | C++ Implementation The...
Ayush Mahajan
Sep 4, 20222 min read


Day 16 | Little Elephant and Numbers | C++
I like this problem a lot because we will learn how to find out the factors of an integer, and learn how to use maps as well. The problem...
Ayush Mahajan
Sep 3, 20222 min read


How do I improve in competitive programming?
Disclaimer: This is my own opinion, I generally this advise to people I have mentored in past, and I am sharing this because if nothing...
Ayush Mahajan
Sep 3, 20223 min read
![Day 15 | Binary Search [Cont.] | C++](https://static.wixstatic.com/media/fbea2a_951be372ec754e94a1441e5b261afba0~mv2.png/v1/fill/w_333,h_250,fp_0.50_0.50,q_35,blur_30,enc_avif,quality_auto/fbea2a_951be372ec754e94a1441e5b261afba0~mv2.webp)
![Day 15 | Binary Search [Cont.] | C++](https://static.wixstatic.com/media/fbea2a_951be372ec754e94a1441e5b261afba0~mv2.png/v1/fill/w_454,h_341,fp_0.50_0.50,q_95,enc_avif,quality_auto/fbea2a_951be372ec754e94a1441e5b261afba0~mv2.webp)
Day 15 | Binary Search [Cont.] | C++
A Note before we start - When I see problems that contain words like minimum, maximum, minimize, and maximize, I try to solve them with...
Ayush Mahajan
Sep 2, 20223 min read


Day 14 | Binary Search | C++
Have you ever used a dictionary? If you are looking for some word, you open a random page and then decide to look ahead or behind right?...
Ayush Mahajan
Sep 1, 20223 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 12 | Arrival of the General | Drinks | Insomnia Cure | C++
Let's Discuss Three Straightforward Questions Today Arrival of the General | C++ Implementation This question is quite straightforward....
Ayush Mahajan
Aug 30, 20223 min read


Day 11 | Perfect Permutation | C++
Today we will be solving Perfect Permutations. This is a very good question to solve your first problem on permutations. I will be...
Ayush Mahajan
Aug 29, 20221 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 9 | Stones on Table | C++
Day 9, Our last single-digit day Today we will be solving Stones on Table: https://codeforces.com/contest/266/problem/A… Do try it...
Ayush Mahajan
Aug 28, 20221 min read
Day 8 | Nearest Lucky Number | C++
Today we are solving into question which is a very good example of problem-solving. We will take the first step into breaking problems...
Ayush Mahajan
Aug 28, 20222 min read
Day 8 | Word Capitalization | C++ | Practice
Next on the list is a problem that helps us revise the concept we learned yesterday. Word Capitalization: https://codeforces.com/contest/...
Ayush Mahajan
Aug 28, 20221 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
bottom of page