Addition 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...3 min read·coder152.comFeb 14, 2023
Find 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...4 min read·coder152.comFeb 13, 2023
Minimum 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 ...4 min read·coder152.com1PFeb 11, 2023
C++ 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 =...3 min read·coder152.comFeb 11, 2023
Python 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...3 min read·coder152.comFeb 11, 2023