coder152.comAddition of digits of two number without giving carry to other digit and return type should be number onlyIn this article, we are going to solve a problem in which we will be given two numbers a and b and we have to add the digits of the given number and pass the carry to the other digit instead of whatever the result is coming after the addition of digi...Feb 14, 2023·3 min read
coder152.comFind Minimum Sum of price required to select atleast M distinct values from array else return -1We will be given two arrays having n elements from which one array values [] will be the collection of values and another array price[] will be the collection of prices. We have to select the m distinct values such that the sum of the price will be m...Feb 13, 2023·4 min read
coder152.comMinimum number of steps required to make the string even if possible with given operation otherwise return -1In this article, we are going to learn about a problem in which we are given a number num in the form of a string and tell the minimum number of steps required to make the string even if possible otherwise return -1. The operation to be performed on ...Feb 11, 2023·4 min read
coder152.comC++ Program for sorting Digits of a given NumberIn this article we are going to learn about that how can we sort the digits of a number in increasing order or decreasing order when we are given a Number 'N'. Let's understand with the help of an example given below: - Let you be given a number N =...Feb 11, 2023·3 min read
coder152.comPython Program to Multiply all the Values in a DictionaryWe are going to learn about how can we multiply the values of the dictionary by accessing the values from it in Python. Example Input 1: {'maths': 90, 'English': 70, 'Hindi': 90, 'science': 90} Output: 51030000 Explanation: We use the .values() meth...Feb 11, 2023·3 min read