(defun guess-blue (blue-in red-in blue-out red-out)
(let ((blue (- blue-in blue-out))
(red (- red-in red-out)))
(/ blue (+ red blue)))
(guess-blue 5 5 2 3)
;; => 3/5
the fun of a language with rationals:
(guess-blue 1 2 0 0)
;; => 1/3
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.