simplify
This commit is contained in:
+1
-1
@@ -33,7 +33,7 @@
|
|||||||
o3 (orientation c d a)
|
o3 (orientation c d a)
|
||||||
o4 (orientation c d b)]
|
o4 (orientation c d b)]
|
||||||
(and (not= o1 o2) (not= o3 o4))))
|
(and (not= o1 o2) (not= o3 o4))))
|
||||||
(def line-segments (map vector input (conj (vec (rest input)) (first input))))
|
(def line-segments (map vector input (rest input)))
|
||||||
|
|
||||||
;; part 2
|
;; part 2
|
||||||
(->> largest-squares
|
(->> largest-squares
|
||||||
|
|||||||
Reference in New Issue
Block a user