diff options
| -rw-r--r-- | challenge-089/tyler-wardhaugh/clojure/README.md | 10 | ||||
| -rw-r--r-- | challenge-089/tyler-wardhaugh/clojure/pom.xml | 19 | ||||
| -rw-r--r-- | challenge-089/tyler-wardhaugh/lua/README.md | 4 | ||||
| -rwxr-xr-x | challenge-089/tyler-wardhaugh/lua/run.lua | 9 |
4 files changed, 28 insertions, 14 deletions
diff --git a/challenge-089/tyler-wardhaugh/clojure/README.md b/challenge-089/tyler-wardhaugh/clojure/README.md index 49181152f7..8a9aa29a42 100644 --- a/challenge-089/tyler-wardhaugh/clojure/README.md +++ b/challenge-089/tyler-wardhaugh/clojure/README.md @@ -1,13 +1,13 @@ -# tw.weekly.c88 +# tw.weekly.c89 -The Weekly Challenge - #088 - Tyler Wardhaugh +The Weekly Challenge - #089 - Tyler Wardhaugh ## Usage Run the project directly (shows default output from both tasks): - $ clojure -M -m tw.weekly.c88.core + $ clojure -M -m tw.weekly.c89.core Run the project's tests (which are samples from the task descriptions): @@ -15,11 +15,11 @@ Run the project's tests (which are samples from the task descriptions): Run Task #1 with input - $ clojure -M -m tw.weekly.c88.t1 N1 N2 N3... + $ clojure -M -m tw.weekly.c89.t1 N Run Task #2 with input: - $ clojure -M -m tw.weekly.c88.t2 MATRIX-FILE + $ clojure -M -m tw.weekly.c89.t2 MATRIX-FILE ## Project Template diff --git a/challenge-089/tyler-wardhaugh/clojure/pom.xml b/challenge-089/tyler-wardhaugh/clojure/pom.xml index 6038b97734..3097f51f8e 100644 --- a/challenge-089/tyler-wardhaugh/clojure/pom.xml +++ b/challenge-089/tyler-wardhaugh/clojure/pom.xml @@ -2,11 +2,11 @@ <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>tw.weekly</groupId> - <artifactId>tw.weekly.c88</artifactId> + <artifactId>tw.weekly.c89</artifactId> <version>0.1.0-SNAPSHOT</version> - <name>tw.weekly.c88</name> - <description>Challenge #088</description> - <url>https://github.com/tw.weekly/tw.weekly.c88</url> + <name>tw.weekly.c89</name> + <description>Challenge #089</description> + <url>https://github.com/tw.weekly/tw.weekly.c89</url> <licenses> <license> <name>Eclipse Public License</name> @@ -19,9 +19,9 @@ </developer> </developers> <scm> - <url>https://github.com/tw.weekly/tw.weekly.c88</url> - <connection>scm:git:git://github.com/tw.weekly/tw.weekly.c88.git</connection> - <developerConnection>scm:git:ssh://git@github.com/tw.weekly/tw.weekly.c88.git</developerConnection> + <url>https://github.com/tw.weekly/tw.weekly.c89</url> + <connection>scm:git:git://github.com/tw.weekly/tw.weekly.c89.git</connection> + <developerConnection>scm:git:ssh://git@github.com/tw.weekly/tw.weekly.c89.git</developerConnection> <tag>HEAD</tag> </scm> <dependencies> @@ -35,6 +35,11 @@ <artifactId>core.matrix</artifactId> <version>0.62.0</version> </dependency> + <dependency> + <groupId>org.clojure</groupId> + <artifactId>math.numeric-tower</artifactId> + <version>0.0.4</version> + </dependency> </dependencies> <build> <sourceDirectory>src</sourceDirectory> diff --git a/challenge-089/tyler-wardhaugh/lua/README.md b/challenge-089/tyler-wardhaugh/lua/README.md index 9473c1a0a4..d2f91b15fe 100644 --- a/challenge-089/tyler-wardhaugh/lua/README.md +++ b/challenge-089/tyler-wardhaugh/lua/README.md @@ -1,13 +1,13 @@ # The Weekly Challenge -The Weekly Challenge - #088 - Tyler Wardhaugh +The Weekly Challenge - #089 - Tyler Wardhaugh ## Usage Run Task 1: - $ ./run.lua ch-1 N1 N2 N3... + $ ./run.lua ch-1 N Run Task 2: diff --git a/challenge-089/tyler-wardhaugh/lua/run.lua b/challenge-089/tyler-wardhaugh/lua/run.lua new file mode 100755 index 0000000000..c6e7473bee --- /dev/null +++ b/challenge-089/tyler-wardhaugh/lua/run.lua @@ -0,0 +1,9 @@ +#!/usr/bin/env lua + +local filename = arg[1] +local run_args = table.move(arg, 2, #arg, 1, {}) + +io.write(string.format("Running task from '%s' with {%s}:\n", + filename, table.concat(run_args, ", "))) + +require(filename).run(run_args) |
