Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私はこの ERLANG を初めて使用しますが、基本は知っています。これはスキームに似ていますが、より広いです。関数の作成方法は知っていますが、Longest Common Subsequence を取得する関数の作成に問題があります。
lcs(str1,str2)2 つの文字列を受け取り、整数を出力する関数です。
lcs(str1,str2)
lcs(algorithm,logarithm)7作成できる最長の共通サブシーケンスはサイズが同じlgrithmであるため、出力7されます。
lcs(algorithm,logarithm)
7
lgrithm
どんな答えでも大歓迎です。