LetuscrackonJune 13, 2024 Longest Common Subsequence Length The program must accept two string values A and B as the input. The program must print the length of the longest common subsequence of the two…
LetuscrackonJune 13, 2024 Count Overlapping String Pattern Two string values S and P representing a string and pattern are passed as the input to the program. The program must print the number of…
LetuscrackonJune 12, 2024 Dice Game – TCS CodeVita Tanu and Shree are friends. They love playing dice games. They also like to experiment and invent new things. They have invented a mechanism…
LetuscrackonJune 11, 2024 Pet Store Dogs There are N dogs in a pet store. The pet store wants to keep the N dogs in cages.There can be two dogs in each cage. A dog can be eitheir…
LetuscrackonJune 11, 2024 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.…
LetuscrackonJune 11, 2024 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…
LetuscrackonJune 11, 2024 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…
LetuscrackonJune 11, 2024 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…
LetuscrackonJune 10, 2024 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…
LetuscrackonJune 10, 2024 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…