We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
结点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
The text was updated successfully, but these errors were encountered:
No branches or pull requests
结点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
The text was updated successfully, but these errors were encountered: