You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
https://deng-duck.github.io/post/qian-tan-bei-zeng-fa-qiu-jie-lca/
倍增法求解LCA是LCA算法中效率较高的一种
本文通过几道题带大家了解这个算法
Luogu P3379 最近公共祖先
原题展现
题目描述
如题,给定一棵有根多叉树,请求出指定两个点直接最近的公共祖先。
输入格式
第一行包含三个正整数 N,...
https://deng-duck.github.io/post/qian-tan-bei-zeng-fa-qiu-jie-lca/
Beta Was this translation helpful? Give feedback.
All reactions