All solutions for Hacker Rank's Euler Challenge
- Add
:plugins [[lein-gorilla "0.4.0"]]
toproject.clj
- Run
lein gorilla
to launch the repl
To add a new module called XXX
- Add a new file
src/XXX.clj
- At the top of the file, add the name space for this module
(ns euler.XXX (:gen-class))
- Add a new file test/XXX_test.clj
- At the top of the file add the namespace of the test and all the dependencies
(ns euler.XXX-test
(:require [clojure.test :refer :all]
[euler.XXX :refer :all]))
To run all tests in project
lein test
To run all tests for XXX
lein test clojure-learn.XXX-test
To run only a specific test
lein test :only euler.XXX-test/name_of_the_test
- Github markdown editor and viewer
- Clojars - repo for open source clojure modules
- Gorilla Repl - A notebook type repl for Clojure (think Jupyter ...)
Profiling Clojure Code https://torsten.io/stdout/how-to-profile-clojure-code/ using (VisualVM)[https://visualvm.github.io/]
The HackerRank Environment for Clojure imposes a 8second time limit for execution, and a maximum memory consumption of 512MB
- Support for debug printing