<O(n),O(1)>的LCA

https://www.topcoder.com/community/competitive-programming/tutorials/range-minimum-query-and-lowest-common-ancestor/
https://www.topcoder.com/community/data-science/data-science-tutorials/range-minimum-query-and-lowest-common-ancestor/#A%20O(N),%20O(1)%20algorithm%20for%20the%20restricted%20RMQ

猜你喜欢

转载自www.cnblogs.com/Cwolf9/p/9928260.html
今日推荐