(filter (every-pred dupe-digits increasing)))))
(defn day04 []
- (let [[low high] [0 1]
- passwords (find-passwords low high)]
+ (let [[low high] [307237 769058]
+ passwords (find-passwords low high)
+ strict-dd (fn [x] (some #(= (count %) 2)
+ (partition-by identity x)))]
(part1 (count passwords))
- #_(part2 nil)))
+ (part2 (count (filter strict-dd passwords)))))