Tag: cpp-numerics-library
Your All-in-One Learning Portal. It contains well written, well thought and well explained computer science and programming articles, quizzes and practice/competitive programming/company interview Questions.
- Minimum number of substrings the given string can be splitted into that satisfy the given conditionsGiven a string str and a string array arr[], the task is to find the minimum count of substrings this can be split into such that every substring is present in
- Count unique numbers that can be generated from N by adding one and removing trailing zerosGiven a number N. Add one to the number in the first step and if the number has trailing zeros, remove all the trailing zeros in the second step. Continue the p
- Number of subsequences with zero sumGiven an array arr[] of N integers. The task is to count the number of sub-sequences whose sum is 0. Examples:
- Minimum number operations required to convert n to m | Set-2Given two integers n and m and a and b, in a single operation n can be multiplied by either a or b. The task is to convert n to m with a minimum number of given
- Count number of ways to reach a given score in a MatrixGiven a N x N matrix mat[][] consisting of non-negative integers, the task is to find the number of ways to reach a given score M starting from the cell (0, 0)
- Programs to print Triangle and Diamond patterns using recursionThis article is aimed at giving a recursive implementation for pattern printing.