Skip to content

Commit

Permalink
Use clojure.string/includes? instead of Java interop
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroenvandijk authored Mar 12, 2024
1 parent 48abfba commit f5f7fad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/data.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -2577,7 +2577,7 @@ There is an interesting pattern in the numbers!"
:tests ["(= [#{\"\"} #{\"()\"} #{\"()()\" \"(())\"}] (map (fn [n] (__ n)) [0 1 2]))"
"(= #{\"((()))\" \"()()()\" \"()(())\" \"(())()\" \"(()())\"} (__ 3))"
"(= 16796 (count (__ 10)))"
"(= (nth (sort (filter #(.contains ^String % \"(()()()())\") (__ 9))) 6) \"(((()()()())(())))\")"
"(= (nth (sort (filter #(clojure.string/includes? % \"(()()()())\") (__ 9))) 6) \"(((()()()())(())))\")"
"(= (nth (sort (__ 12)) 5000) \"(((((()()()()()))))(()))\")"]
:difficulty "medium"
:tags ["math" "combinatorics"]}])

0 comments on commit f5f7fad

Please sign in to comment.