Skip to content

Instantly share code, notes, and snippets.

View sdmoralesma's full-sized avatar

Sergio Morales sdmoralesma

View GitHub Profile
@sdmoralesma
sdmoralesma / yo.clj
Last active November 14, 2019 20:29 — forked from vijaykiran/yo.clj
(ns codewars.meetup
(:require [clojure.string :as string]))
(defn valid-room? [room-name checksum]
(string/starts-with?
(apply str (map key (sort-by val > (sort (frequencies (re-seq #"[a-z]" room-name ))))))
checksum ))