Skip to content

Commit 6801950

Browse files
committed
Runtime: 150 ms (Top 50.00%) | Memory: 47.5 MB (Top 33.33%)
1 parent f7003ab commit 6801950

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/algorithms/E/Erect the Fence/Erect the Fence.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Runtime: 150 ms (Top 50.00%) | Memory: 47.5 MB (Top 33.33%)
12
const outerTrees = (trees) => {
23
trees.sort((x, y) => {
34
if (x[0] == y[0]) return x[1] - y[1];
@@ -19,4 +20,4 @@ const cmp = (p1, p2, p3) => {
1920
let [x2, y2] = p2;
2021
let [x3, y3] = p3;
2122
return (y3 - y2) * (x2 - x1) - (y2 - y1) * (x3 - x2);
22-
};
23+
};

0 commit comments

Comments
 (0)