Longest common subsequence: Difference between revisions

m
Added link to further C++ examples.
(Renamed prefixEnd deque. Improved preferNextIndex2 comment.)
m (Added link to further C++ examples.)
Line 507:
class LCS {
protected:
// ThisInstances of the Pair linked list class isare used to tracerecover the LCS candidates:
class Pair {
public:
Line 658:
auto s = lcs.Correspondence(s1, s2);
cout << s << endl;</syntaxhighlight>
 
More fully featured examples are available at [https://github.com/CNHume/Samples/tree/master/C%2B%2B/LCS Samples/C++/LCS].
 
=={{header|Clojure}}==
159

edits