blob: b122751cd53c9d0cafbaf8f172da6a39b9d44ffc (
plain)
1
2
3
4
5
|
export interface TreeData {
parentById: Record<string, string>;
childrenById: Record<string, string[]>;
}
export declare const findCommonAncestor: (id1: string, id2: string, treeData: TreeData) => string;
|