I'm trying to find ALL common subsequences in an array of strings in ruby not just the longest single subsequence.
This means that if the input is
["aaaF hello", "aaaG hello", "aaaH hello"]
The expected output is
["aaa", " hello"]
I've been messing with the longest single subsequence algorithm, but can't figure out how to get the appropriate output. The problem with most approaches is they have other elements in the final array like "a", "aa", "h", "he", "hel", "hell"