Ayush Gupta has Published 541 Articles

Count ‘d’ digit positive integers with 0 as a digit in C++

Ayush Gupta

Ayush Gupta

Updated on 05-Feb-2020 07:29:56

105 Views

In this tutorial, we will be discussing a program to find the numbers having ‘d’ digits with 0 as a digit.For this we will be provided with a number ‘d’. Our task is to count and print the number of positive integers having ‘d’ digits and 0 as one of ... Read More

Cost to make a string Panagram in C++

Ayush Gupta

Ayush Gupta

Updated on 05-Feb-2020 07:27:08

113 Views

In this tutorial, we will be discussing a program to find the cost of making a string panagram.For this we will be provided with an array of integers. Our task is to convert the given string into a panagram and calculate the cost of doing that with the help of ... Read More

Cost to Balance the parentheses in C++

Ayush Gupta

Ayush Gupta

Updated on 05-Feb-2020 07:23:37

81 Views

In this tutorial, we will be discussing a program to find the cost to balance the parentheses.For this we will be provided with a sequence of brackets. Our task is to balance those parentheses in the equation by shifting their position by one and print -1 if balancing them isn’t ... Read More

Cost of painting n * m grid in C++

Ayush Gupta

Ayush Gupta

Updated on 05-Feb-2020 07:17:06

115 Views

In this tutorial, we will be discussing a program to find the cost of painting n*m grid.For this we will be provided with two integers n and m. Our task is to calculate the minimum cost of painting a n*m grid is the cost of painting a cell is equal ... Read More

Correct the Random Pointer in Doubly Linked List in C++

Ayush Gupta

Ayush Gupta

Updated on 05-Feb-2020 07:14:03

97 Views

In this tutorial, we will be discussing a program to correct the random pointer in a doubly linked list.For this we will be provided with a doubly linked list with one node having a random pointer. Our task is to rectify the element to whom the pointer should be pointing ... Read More

Converting one string to other using append and delete last operations in C++

Ayush Gupta

Ayush Gupta

Updated on 29-Jan-2020 07:49:47

85 Views

In this tutorial, we will be discussing a program to convert one string to other using append and delete last operations.For this we will be provided with two strings. Our task is to calculate whether the first string can be converted into the second one by performing k operations of ... Read More

Converting Decimal Number lying between 1 to 3999 to Roman Numerals in C++

Ayush Gupta

Ayush Gupta

Updated on 29-Jan-2020 07:45:23

295 Views

In this tutorial, we will be discussing a program to convert decimal number lying between 1 to 3999 to roman numerals.For this we will be provided with a random integer. Our task is to convert the given number into its roman numeral equivalent.Example Live Demo#include using namespace std; //converting decimal ... Read More

Convert to number with digits as 3 and 8 only in C++

Ayush Gupta

Ayush Gupta

Updated on 29-Jan-2020 07:44:12

48 Views

In this tutorial, we will be discussing a program to convert a number to have digits as 3 and 8 only.For this we will be provided with a random number. Our task is to convert its digits to be only 3 and 8 by either adding/subtracting 1 from the number ... Read More

Convert to Strictly increasing integer array with minimum changes in C++

Ayush Gupta

Ayush Gupta

Updated on 29-Jan-2020 07:43:14

127 Views

In this tutorial, we will be discussing a program to convert to strictly increasing integer array with minimum changes.For this we will be provided with an array. Our task is to change the elements of the array to be in strictly increasing order by minimum number of changes in the ... Read More

Converting Roman Numerals to Decimal lying between 1 to 3999 in C++

Ayush Gupta

Ayush Gupta

Updated on 29-Jan-2020 07:40:25

271 Views

In this tutorial, we will be discussing a program to converting roman numerals to decimal lying between 1 to 3999.For this we will be provided with a random roman numeral. Our task is to convert the given roman numeral into its decimal equivalent.Example Live Demo#include using namespace std; //calculating the decimal ... Read More

Advertisements