Dynamic Programming Python1 Min Read 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.…
Java1 Min Read LetuscrackonJune 11, 2024 Count of common factors Given a set of numbers, the program must find the count of the common factors C excluding 1. Input Format:First line will contain the integer…
C1 Min Read LetuscrackonJune 10, 2024 First N Common Characters Two string values S1, S2 are passed as the input. The program must print first N characters present in S1 which are also present in S2. Input…
Python1 Min Read LetuscrackonJune 9, 2024 Count of Common Characters in the Strings Two string values S1 and S2 are passed as input. The program must print the count of common characters in the strings S1 and S2. Input Format:…