Skip to content

#Bug Fixed LeetCode pdfs #1

@niqibiao

Description

@niqibiao

Interleaving String

初始化条件部分代码有误,应为:

        for(int i = 1; i < m+1; ++i)
            dp[i][0] = dp[i-1][0] && (s1[i-1] == s3[i-1]);
            
        for(int j = 1; j < n+1; ++j)
            dp[0][j] = dp[0][j-1] && (s2[j-1] == s3[j-1]);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions