Ayush Gupta has Published 430 Articles

Maximum points from top left of matrix to bottom right and return back in C++

Ayush Gupta

Ayush Gupta

Updated on 09-Sep-2020 12:14:30

415 Views

In this tutorial, we will be discussing a program to find maximum points from top left of matrix to bottom right and return backFor this we will be provided with matrix consisting of #-blocked path, *-points, .- allowed path. Our task is to go from one corner to another (right ... Read More

Maximum points covered after removing an Interval in C++

Ayush Gupta

Ayush Gupta

Updated on 09-Sep-2020 12:08:40

274 Views

In this tutorial, we will be discussing a program to find maximum points covered after removing an IntervalFor this we will be provided with N intervals and the maximum range value . Our task is to find that one interval which when removed will give us the maxim numbers in ... Read More

Maximum points collected by two persons allowed to meet once in C++

Ayush Gupta

Ayush Gupta

Updated on 09-Sep-2020 12:06:27

154 Views

In this tutorial, we will be discussing a program to find maximum points collected by two persons allowed to meet onceFor this we will be provided with a matrix with cells containing points. Our task is to find the path when two people starting from two corners meet such that ... Read More

Maximum path sum that starting with any cell of 0-th row and ending with any cell of (N-1)-th row in C++

Ayush Gupta

Ayush Gupta

Updated on 09-Sep-2020 12:02:53

203 Views

In this tutorial, we will be discussing a program to find maximum path sum that starting with any cell of 0-th row and ending with any cell of (N-1)-th rowFor this we will be provided with a matrix with possible moves of (i+1, j), (i+1, j-1), (i+1, j+1). Our task ... Read More

Maximum path sum for each position with jumps under divisibility condition in C++

Ayush Gupta

Ayush Gupta

Updated on 09-Sep-2020 11:57:56

142 Views

In this tutorial, we will be discussing a program to find maximum path sum for each position with jumps under divisibility conditionFor this we will be provided with an array of n random integers. Our task is to jump from one position to another if it divides it and finally ... Read More

Maximum parent children sum in Binary tree in C++

Ayush Gupta

Ayush Gupta

Updated on 09-Sep-2020 11:55:49

279 Views

In this tutorial, we will be discussing a program to find maximum parent children sum in Binary treeFor this we will be provided with a binary tree. Our task is to add up the parent node with its children nodes and finally find the maximum of all of that and ... Read More

Maximum of sum and product of digits until number is reduced to a single digit in C++

Ayush Gupta

Ayush Gupta

Updated on 09-Sep-2020 11:52:37

317 Views

In this tutorial, we will be discussing a program to find maximum of sum and product of digits until number is reduced to a single digitFor this we will be provided with a random number. Our task is to find and print out the maximum of sum and product of ... Read More

Maximum of smallest possible area that can get with exactly k cut of given rectangular in C++

Ayush Gupta

Ayush Gupta

Updated on 09-Sep-2020 11:49:21

177 Views

In this tutorial, we will be discussing a program to find the maximum of smallest possible area that can get with exactly k cut of given rectangular.For this we will be provided with the sides of the rectangle and the number of cuts that can be made. Our task is ... Read More

Program to find greater value between a^n and b^n in C++

Ayush Gupta

Ayush Gupta

Updated on 09-Sep-2020 11:46:12

193 Views

In this tutorial, we will be discussing a program to find greater value between a^n and b^n.For this we will be provided with three numbers. Our task is to calculate a^n and b^n and return back the greater of those values.Example Live Demo#include using namespace std; //finding the greater value ... Read More

Program to find GCD or HCF of two numbers using Middle School Procedure in C++

Ayush Gupta

Ayush Gupta

Updated on 09-Sep-2020 11:40:38

1K+ Views

In this tutorial, we will be discussing a program to find GCD or HCF of two numbers using Middle School Procedure.For this we will be provided with two numbers. Our task is to find the GCD (greatest common divisor) or HCF (highest common factor) for the given values.Example Live Demo#include ... Read More

Advertisements