Ayush Gupta has Published 530 Articles

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

126 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

167 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

255 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

323 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

Maximum possible sum of a window in an array such that elements of same window in other array are unique in c++

Ayush Gupta

Ayush Gupta

Updated on 09-Sep-2020 12:41:24

105 Views

In this tutorial, we will be discussing a program to find maximum possible sum of a window in an array such that elements of same window in other array are unique.For this we will be provided with two arrays with equal number of elements. Our task is to find the ... Read More

Maximum Possible Product in Array after performing given Operations in C++

Ayush Gupta

Ayush Gupta

Updated on 09-Sep-2020 12:34:38

260 Views

In this tutorial, we will be discussing a program to find maximum Possible Product in Array after performing given OperationsFor this we will be provided with an array of size N. Our task is to perform N-1 operations (changing a[j] → a[i]*a[j] and remove a[i] value or just remove the ... Read More

Maximum possible middle element of the array after deleting exactly k elements in C++

Ayush Gupta

Ayush Gupta

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

208 Views

In this tutorial, we will be discussing a program to find maximum possible middle element of the array after deleting exactly k elementsFor this we will be provided with an array of size N and an integer K. Our task is to reduce K elements from the array such that ... Read More

Maximum possible intersection by moving centers of line segments in C++

Ayush Gupta

Ayush Gupta

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

119 Views

In this tutorial, we will be discussing a program to find maximum possible intersection by moving centers of line segmentsFor this we will be provided with the center of three line segments and their length. Our task is to move their center by K distance to increase the length of ... Read More

Maximum possible difference of two subsets of an array in C++

Ayush Gupta

Ayush Gupta

Updated on 09-Sep-2020 12:20:29

559 Views

In this tutorial, we will be discussing a program to find maximum possible difference of two subsets of an arrayFor this we will be provided with an array containing one or two instances of few random integers. Our task is to create two subsets of that array such that the ... Read More

Maximum points of intersection n lines in C++

Ayush Gupta

Ayush Gupta

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

197 Views

In this tutorial, we will be discussing a program to find maximum points of intersection n linesFor this we will be provided with a number of straight lines. Our task is to find the maximum number of intersections the given number of lines meet.Example Live Demo#include using namespace std; #define ... Read More

Advertisements