lcs.cpp

来自「LCS Algorithm, this is a c++ code for lc」· C++ 代码 · 共 22 行

CPP
22
字号
#include <iostream>
#include <stdlib>
#include <stdio>
#include <string>
using namespace std;

enum direction {north, west, nw};

int print_LCS(enum direction **b, char *X, int i, int j);

int main()
{
    int m, n;			//lengths of the two strings
    char *X, *Y;			// the two strings, after copying
    int **c;			// table of LCS lengths
    enum direction **b;		// table of which optimal subprob solution
    int i, j;
    int length;			// length of LCS of prefixes

    string str1,str2;

    cout<<"叫块

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?