Skip to content

Commit 1f6debc

Browse files
committed
Update index.ts
1 parent de0b4fa commit 1f6debc

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

my-calendar-iii/index.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,8 @@ export default class MyCalendarThree {
3333
...segments.map(([a, b]) => SegmentTree(a, b, node.value)),
3434
);
3535
}
36-
if (node.children.length) {
37-
return this.#searchChildren(start, end, node.children);
38-
}
3936

40-
return [];
37+
return this.#searchChildren(start, end, node.children);
4138
}
4239

4340
#searchChildren(

0 commit comments

Comments
 (0)