loading...

Discussion on: Daily Challenge #29 - Xs and Os

Collapse
jess0417 profile image
Jess

Clojure

(defn xo [s]
  (def freq (frequencies (seq s)))
  (= (get freq \x) (get freq \o)))