We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f7003ab commit 6801950Copy full SHA for 6801950
scripts/algorithms/E/Erect the Fence/Erect the Fence.js
@@ -1,3 +1,4 @@
1
+// Runtime: 150 ms (Top 50.00%) | Memory: 47.5 MB (Top 33.33%)
2
const outerTrees = (trees) => {
3
trees.sort((x, y) => {
4
if (x[0] == y[0]) return x[1] - y[1];
@@ -19,4 +20,4 @@ const cmp = (p1, p2, p3) => {
19
20
let [x2, y2] = p2;
21
let [x3, y3] = p3;
22
return (y3 - y2) * (x2 - x1) - (y2 - y1) * (x3 - x2);
-};
23
+};
0 commit comments