Ayush Gupta has Published 430 Articles

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

Ayush Gupta

Ayush Gupta

Updated on 10-Jul-2020 14:13:32

145 Views

In this tutorial, we will be discussing a program to find maximum sub-matrix area having count of 1’s one more than count of 0’s.For this we will be provided with a matrix containing 0’s and 1’s. Our task is to get the sub-matrix of maximum area containing more 1’s than ... Read More

Maximum subarray sum in an array created after repeated concatenation in C++

Ayush Gupta

Ayush Gupta

Updated on 10-Jul-2020 14:08:47

153 Views

In this tutorial, we will be discussing a program to find maximum subarray sum in an array created after repeated concatenation.For this we will be provided with an array and an integer K. Our task is to find the subarray with the maximum elements when the given array is repeated ... Read More

Maximum Subarray Sum Excluding Certain Elements in C++

Ayush Gupta

Ayush Gupta

Updated on 10-Jul-2020 14:07:10

192 Views

In this tutorial, we will be discussing a program to find maximum Subarray Sum Excluding Certain Elements.For this we will be provided with two arrays of size M and N. Our task is to find a sub-array in the first array such that no element inside the subarray is present ... Read More

Maximum subarray size, such that all subarrays of that size have sum less than k in C++

Ayush Gupta

Ayush Gupta

Updated on 10-Jul-2020 14:05:05

197 Views

In this tutorial, we will be discussing a program to find maximum subarray size, such that all subarrays of that size have sum less than k.For this we will be provided with an array of size N and an integer k. Our task is to find the length of subarray ... Read More

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

Ayush Gupta

Ayush Gupta

Updated on 10-Jul-2020 14:01:45

185 Views

In this tutorial, we will be discussing a program to find maximum students to pass after giving bonus to everybody and not exceeding 100 marks.For this we will be provided with an array containing marks of N students. Our task is to get more student pass the exam (50 marks ... Read More

C++ program to implement Run Length Encoding using Linked Lists

Ayush Gupta

Ayush Gupta

Updated on 10-Jul-2020 05:52:47

351 Views

In this tutorial, we will be discussing a program to implement Run Length Encoding using Linked Lists.For this we will be given with a linked list. OUr task is too encode the elements of the Linked List using Run Length Encoding.For example, if the elements of the linked list are ... Read More

C++ program to find the rate percentage from compound interest of consecutive years

Ayush Gupta

Ayush Gupta

Updated on 09-Jul-2020 08:55:38

220 Views

In this tutorial, we will be discussing a program to find the rate percentage from compound interest of the consecutive years.For this, we will be provided with two integers say A and B that are the interests of two consecutive years. Our task is to find the rate of interest ... Read More

C program to find the Roots of Quadratic equation

Ayush Gupta

Ayush Gupta

Updated on 09-Jul-2020 08:55:12

3K+ Views

In this tutorial, we will be discussing a program to find the roots of the Quadratic equation.Given a quadratic equation of the form ax2 + bx + c. Our task is to find the roots x1 and x2 of the given equation.For this, we are using the deterministic method, in ... Read More

C++ program to find the side of the Octagon inscribed within the square

Ayush Gupta

Ayush Gupta

Updated on 09-Jul-2020 08:54:48

145 Views

In this tutorial, we will be discussing a program to find the side of the octagon inscribed within a given square.For this, we will be given with the side of a square and our task is to find the side of the largest octagon that can be inscribed in it.Finding ... Read More

C++ program to find the smallest element among three elements

Ayush Gupta

Ayush Gupta

Updated on 09-Jul-2020 08:54:23

2K+ Views

In this tutorial, we will be discussing a program to find the smallest element among the provided three elements.We will be provided with three elements/ integers and our task is to compare them and find the smallest element/ integer among them.Example#include using namespace std; int main() {    int ... Read More

Advertisements