Posts by Deepanshu

Author Biographical Info: An Information technology undergraduate student who believes in making an impact and love to work on different technology

Kth order-Segment tree problem in C++

By Deepanshu

Now we will be going to solve the segment tree question in C++. Problem description Given n integers, and an array an of n integers, and q queries. The queries are of three types. .... Read More

Tree Rerooting Technique in C++

By Deepanshu

Now let’s learn how to use Tree Rerooting Technique in C++. Problem description Consider an unweighted tree with N node and N-1 edges and a positive number D, Find how many d.... Read More

Calculate Money in Bank- A Greedy algorithm Problem in C++

By Deepanshu

This problem is about a greedy algorithm we will going to solve this problem and will learn about the concepts and algorithm used and then will see its implementation in C++. Probl.... Read More

Long jumps – Dp problem in C++

By Deepanshu

Now we will be going to solve a dynamic programming problem Long jumps in C++. Problem description A person is currently standing on point 0 in the 1-D array and jumps to reach poi.... Read More

Special Items – Array problem in C++

By Deepanshu

Now let’s solve the Special item array problem Problem description There are several special items and the special item can be split to form M normal items. Both types of ite.... Read More

Count Negative Numbers in a Sorted Matrix in C++

By Deepanshu

We are going to solve the problem of counting negative numbers in a sorted matrix and learn about the concepts and algorithm used. Then we will see its implementation in C++. Probl.... Read More

Dojo Eating apples – A Binary search problem in C++

By Deepanshu

This problem is about how can we use binary search algorithm and use it to solve complex problems we will learn about the concepts and algorithm used and then will see its implemen.... Read More