私は大きな文字列とサブストリングの配列を持っています。例えば (文字列の間の微妙な違いに注意してください): large_str = "hello, this is a long string, that may be made up of multiple
substrings that approximately match the original string"
sub_strs =
Swift 3.0アプリケーションでは、6〜12文字列の最も長い共通部分文字列を見つけることによって、 例文字列: ON/OFF office lights
DIM office lights
VALUE office lights
FB office lights
FB VALUE office lights
所望の出力:私は最長のサブシーケンスに対して複数のStackOverflo
私たちの教授は、私たちに次のような問題を与えた: Input
A sequence of characters X = x1, x2, ... ,xn
Output
The length of the longest sub-sequence of X that is a palindrome
私のソリューションでした: Take X and reverse it int