Dynamic Programming Python1 Min Read LetuscrackonJune 5, 2026 DP – Longest Common Substring Length Two string values S1 and S2 are passed as the input to the program. The program must print the length of the longest common substring.…
Dynamic Programming Java1 Min Read LetuscrackonMay 18, 2026 Selling Wine Bottles There are N wine bottles packed and arranged in a row from left to right. The wine bottles can be sold only one per year with a…
Dynamic Programming Python1 Min Read LetuscrackonMay 14, 2026 DP – Maximum Sum Subarray An array of N integers (both positive and negative) is given as the input to the program. The program must print the maximum sum of the…
Dynamic Programming Python1 Min Read LetuscrackonMay 13, 2026 DP – Matrix Ways from Top Left to Bottom Right The number of rows R and columns C of a matrix are passed as the input. The program must print the number of ways W to traverse from the top…
LetuscrackonFebruary 22, 2026 Finding Sum – TCS CodeVita The program must accept N integers and an integer P as the input. The program must print the number of subsets of…
C Dynamic Programming Python TCS CodeVita2 Min Read LetuscrackonFebruary 10, 2026 Square Free Numbers – TCS CodeVita The program must accept an integer N as the input. The program must print the number of square free numbers that divide the given…
C Dynamic Programming TCS CodeVita1 Min Read LetuscrackonFebruary 8, 2026 Uncertain Steps – TCS CodeVita Uncertain Steps: Codu is trying to go down stairs from his building to ground floor. He can go 3 ways.1) Walk 1 step at a time.2) Extend his…
C Dynamic Programming2 Min Read LetuscrackonFebruary 5, 2026 N Queens – Fill Remaining In a N*N square chessboard, Q queens are placed in Q continuous rows so that they do not attack each other. The program must accept…
C Dynamic Programming1 Min Read LetuscrackonFebruary 4, 2026 Divine Divisors The program must accept N integers as the input. For each integer X among the N integers, the program must print all the…
C Dynamic Programming1 Min Read LetuscrackonFebruary 2, 2026 Codu and Sum Love Given N number of x‘s, perform logic equivalent of the below Java code and print the output. Boundary Condition(s):1…