summaryrefslogtreecommitdiffstats
path: root/Algorithms/Part-I/2-Randomized_Queues_Deques/run.sh
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2013-03-06 12:12:35 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2013-11-15 17:38:44 +0100
commitc3f1f5217fd2df4981f427540b2535f566d8a1e8 (patch)
tree9f7870ca6f9c42b07e79dc9a03394ad2669a8aae /Algorithms/Part-I/2-Randomized_Queues_Deques/run.sh
parent73d2d52f4a106ca5467576178c642f351be724b3 (diff)
downloadcoursera-c3f1f5217fd2df4981f427540b2535f566d8a1e8.zip
coursera-c3f1f5217fd2df4981f427540b2535f566d8a1e8.tar.gz
Algorithms-I : 2-Randomized_Queues_Deques: finished
Diffstat (limited to 'Algorithms/Part-I/2-Randomized_Queues_Deques/run.sh')
-rwxr-xr-xAlgorithms/Part-I/2-Randomized_Queues_Deques/run.sh21
1 files changed, 21 insertions, 0 deletions
diff --git a/Algorithms/Part-I/2-Randomized_Queues_Deques/run.sh b/Algorithms/Part-I/2-Randomized_Queues_Deques/run.sh
new file mode 100755
index 0000000..6adde6d
--- /dev/null
+++ b/Algorithms/Part-I/2-Randomized_Queues_Deques/run.sh
@@ -0,0 +1,21 @@
+#! /bin/bash
+
+export "CLASSPATH=$CLASSPATH:.:$HOME/algs4/algs4.jar:$HOME/algs4/stdlib.jar"
+
+CLASSES="Deque RandomizedQueue Subset"
+
+rm *.class *.zip 2>/dev/null
+
+for kls in $CLASSES; do
+ ~/algs4/bin/checkstyle ${kls}.java
+ javac ${kls}.java
+done
+~/algs4/bin/findbugs *.class
+
+echo "RUN..."
+echo A B C D E F G H I | java Subset 3
+echo A B C D E F G H I | java Subset 3
+echo A B C D E F G H I | java Subset 3
+echo AA BB BB BB BB BB CC CC | java Subset 8
+
+zip queues.zip Deque.java RandomizedQueue.java Subset.java