summaryrefslogtreecommitdiff
path: root/specification.txt
diff options
context:
space:
mode:
authorJoe Robinson <joe@lc8n.com>2015-01-26 22:32:55 +0000
committerJoe Robinson <joe@lc8n.com>2015-01-26 22:32:55 +0000
commitdd14976a3e13053b554e164c582084ddf8e0e833 (patch)
tree9df5fe9853094e4612d6e502194a398b999a072e /specification.txt
Initial commitHEADmaster
Diffstat (limited to 'specification.txt')
-rw-r--r--specification.txt38
1 files changed, 38 insertions, 0 deletions
diff --git a/specification.txt b/specification.txt
new file mode 100644
index 0000000..7734850
--- /dev/null
+++ b/specification.txt
@@ -0,0 +1,38 @@
+Code Test
+
+A customer wishes to create a word count program. However unlike a
+traditional word count they
+
+wish to ignore words which are partial matches of longer words For
+example using the following
+
+text:
+
+A mate material may maybe right maybe
+
+A is discarded as it is contained in mate, material, may and maybe.
+
+A mate material may maybe right maybe
+
+Mate is discarded as it is contained in material.
+
+A mate material may maybe right maybe
+
+May is discarded as it is contained in maybe
+
+A mate material may maybe right maybe
+
+Write a Java program which takes an input file and outputs the word
+count, for example based on
+
+the previous example text the output would be:
+
+Material: 1
+
+Maybe: 2
+
+Right: 1
+
+The output should be sorted by longest word in descending order.
+
+Ensure that your code is written to commercial standards.