python:实现lowest common ancestor最低共同祖先算法 from __future__ import annotations from queue import Queue def swap(a: int, b: int) -> tuple[