Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LCA最近公共子序列存在错误 #412

Open
sqtds opened this issue Mar 3, 2015 · 0 comments
Open

LCA最近公共子序列存在错误 #412

sqtds opened this issue Mar 3, 2015 · 0 comments

Comments

@sqtds
Copy link

sqtds commented Mar 3, 2015

结点3和结点4的最近公共祖先是结点2,即LCA(3 4)=2 。在此,需要注意到当两个结点在同一棵子树上的情况,如结点3和结点2的最近公共祖先为2,即 LCA(3,2)=2。同理:LCA(5,6)=4,LCA(6,10)=1。
其中LCA(3 4)=2 少了一个逗号,应该是LCA(3 ,4)=2 。
LCA(3,2)=2存在错误,应该是LCA(3,2)=1

@sqtds sqtds changed the title LCA LCA最近公共子序列存在错误 Mar 3, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant