Skip to content

Commit

Permalink
Solve Cryptotext in clojure
Browse files Browse the repository at this point in the history
  • Loading branch information
deniscostadsc committed Nov 26, 2024
1 parent 9fc30d8 commit 3bd5515
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions solutions/beecrowd/2866/2866.clj
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
(ns main
(:require [clojure.string :as str]))

(defn filter-uppercase-letter [string]
(apply str (filter #(Character/isLowerCase %) string)))

(defn main []
(loop [index (Integer/parseInt (read-line))]
(when (> index 0)
(-> (read-line)
(filter-uppercase-letter)
(str/reverse)
(println))
(recur (dec index)))))

(main)

0 comments on commit 3bd5515

Please sign in to comment.