# Category Archives: Dynamic Programming

Given N and K, the task is to form an array where each element represents the number of ways to reach each index i (1â€¦ Read More
Given binary array A[] of size N, the task is to find the minimum cost to remove all elements of the array by performing movesâ€¦ Read More
Given numbers T, A, and B, the task is to find the greatest number less than equal to T formed by the sum of anyâ€¦ Read More
Given integer N, the task is to count the number of ways( modulo 109 + 7) to create an N digit number from digits 1â€¦ Read More
Given the number N, the task for this problem is to find the number of ways of creating an N digit number whose bitwise XORâ€¦ Read More
Given a number N, the task is to count the number of ways to create a string of size N (only with capital alphabets) suchâ€¦ Read More
Given an array of integer nums[] and a positive integer K, the task is to find the maximum number of integers that can be selectedâ€¦ Read More
Given a number N, the task is to count the number of ways to create an N digit number from digits 1 to 9 suchâ€¦ Read More
Given integers L and R, the task for this problem is to find a number of integers in the range L to R whose sumâ€¦ Read More
Given integers T, A, and B, the task for this problem is to find numbers in the range [A, B] such that the adjacent digitsâ€¦ Read More
Given integers A, B, C, and D, There are two boxes First Box has A red balls and B blue balls and the second boxâ€¦ Read More
Given integers A and K, there are A boxes the first box contains K balls, the Second box contains K + 1 balls, the Thirdâ€¦ Read More
Given arrays A[] and B[] of size N and integer M, the task is to find out the minimum operations required to collect a sumâ€¦ Read More
Given non-negative integers X, Y, and Z for each M query. Given X amount of character ‘A’, Y amount of character ‘B’, and Z amountâ€¦ Read More
Given integers, L and R, the task is to find the âˆ‘f(x) for all L to R, where f(x) is defined for number as f(x)â€¦ Read More