A Space Optimized Solution of LCS
Given two strings, s1 and s2, the task is to find the length of the Longest Common Subsequence. If there is no common subsequence, return 0. Examples: Input: s1 = âABCDGHâ, s2 = âAEDFHRâOutput: 3Explanation: The longest subsequence present in both strings is "ADH". Input: s1 = âAGGTABâ, s2 = âGXTXAY