Ayush Gupta has Published 542 Articles

Maximum sum of increasing order elements from n arrays in C++

Ayush Gupta

Ayush Gupta

Updated on 09-Sep-2020 13:05:50

111 Views

In this tutorial, we will be discussing a program to find maximum sum of increasing order elements from n arrays.For this we will be provided with N arrays of M size. Our task is to find the maximum sum by selecting one element from each array such that element from ... Read More

Maximum product of indexes of next greater on left and right in C++

Ayush Gupta

Ayush Gupta

Updated on 09-Sep-2020 13:03:39

89 Views

In this tutorial, we will be discussing a program to find maximum product of indexes of next greater on left and right.For this we will be provided with an array of integers. Our task is to find the element with maximum Left-Right product (L(i)*R(i) where L(i) is closest index on ... Read More

Maximum product of an increasing subsequence in C++

Ayush Gupta

Ayush Gupta

Updated on 09-Sep-2020 13:01:04

72 Views

In this tutorial, we will be discussing a program to find maximum product of an increasing subsequence.For this we will be provided with an array of integers. Our task is to find the maximum product of any subsequence of the array with any number of elements.Example Live Demo#include #define ll ... Read More

Maximum product of an increasing subsequence of size 3 in C++

Ayush Gupta

Ayush Gupta

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

77 Views

In this tutorial, we will be discussing a program to find maximum product of an increasing subsequence of size 3.For this we will be provided with an array of positive integers. Our task is to find a subsequence of three elements with the maximum product.Example#include using namespace std; //returning maximum ... Read More

Maximum product of a triplet (subsequence of size 3) in array in C++

Ayush Gupta

Ayush Gupta

Updated on 09-Sep-2020 12:57:09

68 Views

In this tutorial, we will be discussing a program to find maximum product of a triplet (subsequence of size 3) in array.For this we will be provided with an array of integers. Our task is to find the triplet of elements in that array with the maximum productExample Live Demo#include ... Read More

Maximum product of 4 adjacent elements in matrix in C++

Ayush Gupta

Ayush Gupta

Updated on 09-Sep-2020 12:54:21

190 Views

In this tutorial, we will be discussing a program to find maximum product of 4 adjacent elements in matrix.For this we will be provided with a square matrix. Our task is to find the maximum product of four adjacent elements which can be top, down, right, left, or diagonal.Example Live Demo#include ... Read More

Maximum product from array such that frequency sum of all repeating elements in product is less than or equal to 2 * k in C++

Ayush Gupta

Ayush Gupta

Updated on 09-Sep-2020 12:50:50

85 Views

In this tutorial, we will be discussing a program to find maximum product from array such that frequency sum of all repeating elements in product is less than or equal to 2 * k.For this we will be provided with an array and an integer k. Our task is to ... Read More

Maximum Product Cutting | DP-36 in C++

Ayush Gupta

Ayush Gupta

Updated on 09-Sep-2020 12:48:26

94 Views

In this tutorial, we will be discussing a program to find maximum Product Cutting | DP-36.For this we will be provided with a rope of N meters. Our task is to cut the rope in different integer lengths such that the product of their lengths is the maximumExample Live Demo#include ... Read More

Maximum power of jump required to reach the end of string in C++

Ayush Gupta

Ayush Gupta

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

209 Views

In this tutorial, we will be discussing a program to find maximum power of jump required to reach the end of string.For this we will be provided with a string of 0s and 1s. Our task is to find the maximum jump required to move from front to end of ... Read More

Maximum possible time that can be formed from four digits in C++

Ayush Gupta

Ayush Gupta

Updated on 09-Sep-2020 12:44:22

264 Views

In this tutorial, we will be discussing a program to find maximum possible time that can be formed from four digits.For this we will be provided with an array consisting 4 digits. Our task is to find the maximum time (24 hour format) that can formed using those four digits.Example Live ... Read More

Advertisements