Sudhir sharma has Published 1149 Articles

Maximum sub-matrix area having count of 1's one more than count of 0’s in C++ program

sudhir sharma

sudhir sharma

Updated on 09-Dec-2020 12:41:28

136 Views

In this problem, we are given a 2-D matrix of size nXn consisting of binary numbers (0/1). Our task is to create a program to find the Maximum submatrix area having count of 1’s one more than count of 0’s.Let’s take an example to understand the problem, Inputbin[N][N] = { ... Read More

Maximum students to pass after giving bonus to everybody and not exceeding 100 marks in C++ Program

sudhir sharma

sudhir sharma

Updated on 09-Dec-2020 12:36:44

156 Views

In this problem, we are given an array stu[] of size n denoting the marks of students in the class. For each student, the maximum mark is 100 and a student needs 50 marks to pass the exam. Our task is to create a program to find the Maximum students ... Read More

Maximum size rectangle binary sub-matrix with all 1s in C++ Program

sudhir sharma

sudhir sharma

Updated on 09-Dec-2020 12:21:35

382 Views

In this problem, we are given a 2-D matrix bin[][] of size n*m that contains online binary numbers i.e. 0/1. Our task is to create a program to find the Maximum size rectangle binary sub-matrix with all 1s and Return the maximum area.Let’s take an example to understand the problem, ... Read More

Maximum size of sub-array that satisfies the given condition in C++ program

sudhir sharma

sudhir sharma

Updated on 09-Dec-2020 12:18:45

210 Views

In this problem, we are given an array arr[] of n integers. Our task is to create a program to find the maximum size of sub-array that satisfies the given condition.Problem Description − We need to find the length of largest subarray that satisfies any one of the below condition, ... Read More

Maximum product subset of an array in C++ program

sudhir sharma

sudhir sharma

Updated on 09-Dec-2020 12:15:45

246 Views

In the problem, we are given an array arr[] of n integer values. Our task is to create a program to find the Maximum product subset of an array.Problem Description − Here, we need to calculate the maximum possible product of a subset of elements of an array.Subset − An ... Read More

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

sudhir sharma

sudhir sharma

Updated on 09-Dec-2020 12:13:07

343 Views

In this problem, we are given an array arr[]. Our task is to create a program to calculate the Maximum product of indexes of next greater on left and right.Problem Description −For the given array we need to find the product of maximum value of left[i]*right[i]. Both arrays are defined ... Read More

Maximum product of an increasing subsequence in C++ Program

sudhir sharma

sudhir sharma

Updated on 09-Dec-2020 12:10:11

190 Views

In this problem, we are given an array arr[] of size n. Our task is to find the maximum product of an increasing subsequence.Problem Description − We need to find the maximum product of increasing subsequence of any size possible from the elements of the array.Let’s take an example to ... Read More

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

sudhir sharma

sudhir sharma

Updated on 09-Dec-2020 12:07:55

178 Views

In this problem, we are given an array arr[] of n positive integers. Our task is to create a program to find the Maximum product of an increasing subsequence of size 3.Problem Description − Here, we need to find the maximum product of 3 elements of the array such that ... Read More

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

sudhir sharma

sudhir sharma

Updated on 09-Dec-2020 12:04:27

702 Views

In this problem, we are given an array arr[] consisting of n integers. Our task is to find the maximum product of a triplet (subsequence of size 3) in array. Here, we will be finding the triple with maximum product value and then return the product.Let’s take an example to ... Read More

Sum of two numbers where one number is represented as array of digits in C++

sudhir sharma

sudhir sharma

Updated on 17-Aug-2020 10:43:45

154 Views

In this problem, we are given two numbers, from which one is represented using array of digits. Our task is to create a program that will find the sum of two numbers where one number is represented as array of digits.Let’s take an example to understand the problem, Input: n ... Read More

Advertisements