deno.land / x / masx200_leetcode_test@10.6.5 / max-points-on-a-line / uniqueStraightLineEquation.ts

uniqueStraightLineEquation.ts
نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
export function uniqueStraightLineEquation( a: number, b: number, c: number,): [number, number, number] { if (c < 0) { return uniqueStraightLineEquation(-a, -b, -c); } const k = Math.abs(a === 0 ? b : a); a /= k; b /= k; c /= k; return [a, b, c];}
masx200_leetcode_test

Version Info

Tagged at
a year ago