## Prime numbers in C++ |Code, and Explanation

Here we will learn different algorithms to calculate prime numbers in c++. This topic is super popular in competitive programming, as many questions were asked on competitive programming websites. Prime numbers are the building blocks…

## Towers of Hanoi Program & Algorithm In C

This article deals with the problem of towers of Hanoi in the C programming language. We all would have played towers of Hanoi puzzle in our childhood, right? Now let’s solve the mathematical puzzle computationally….

## How to Print 4 Different Diamond Pattern in Python

We think printing diamond pattern (also known as star pattern) is a herculean task. In fact, it is a piece of cake. This article will help you in learning to print diamond pattern in python….

## Find First Repeating Element In An Array

We are going to find the First Repeating Element In An Array but before this, I hope you know what the array, binary search, set is. I am not going to make this post long…

## Factorial Using Recursion | Explained

Finding factorial using recursion is not any rocket science, Here I am going to explain both methods. But let’s have a look at what factorial and recursion is. Factorial: factorial of number is defined as,…

## How To Sort A String In C++ | 2 Different Ways

Sorting is very important in Competitive Programming. Here, we are going to discuss How to sort a string in C++ in 2 different ways. Sorting String refers to Sorting Multiple String or Sorting characters of…

## A-Good String: Codeforces 1385 D: Explained

This is another editorial post of the code forces problem a-Good String. Detailed Editorial In this problem our task is to find the minimum number of moves required to obtain a-good string from the given…

## Basketball Exercise Codeforce 1195C Editorial Explained

This is another editorial post of the codeforce problem Basketball Exercise. Detailed BasketBall Exercise Editorial The problem is basically a DP problem where we have the choice to choose such that  no consecutive chosen students…

## Little Girl and Maximum Sum, Editorial | Codeforces

This is an editorial post of the codeforces problem Little Girl and Maximum Sum. Detailed Editorial If you observe the problem statement carefully, it is a range sum query problem that can be easily done…

## Mashmokh and ACM Editorial | GeeksToCode

This is an editorial post of the code forces problem Mashmokh and ACM. Problem Statement Mashmokh’s boss, Bimokh, didn’t like Mashmokh. So he fired him. Mashmokh decided to go to university and participate in ACM…