deno.land / x / masx200_leetcode_test@10.6.5 / my-calendar-ii / searchSegmentChildren.ts

searchSegmentChildren.ts
نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import { SegmentTree } from "../my-calendar-iii/SegmentTree.ts";import { searchSegmentLeaf } from "./searchSegmentLeaf.ts";
export function searchSegmentChildren( start: number, end: number, nodes: SegmentTree[], options: { each?(node: SegmentTree): void } = {},): SegmentTree[] { const trees: SegmentTree[] = []; for (const child of nodes) { trees.push(...searchSegmentLeaf(start, end, child, options)); } return trees;}
masx200_leetcode_test

Version Info

Tagged at
a year ago