-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtask.txt
24 lines (15 loc) · 1.1 KB
/
task.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
The task
You need to put together a simple web application that can produce anagrams of words from a wordlit.
You can find a copy of our wordlist at http://static.abscond.org/wordlist.txt
Non-alphanumeric characters should be considered as part of the anagram (e.g. "he's" is not an anagram of "she")
The application should be able to respond to a request made every second
Assume that the application will be hosted on heroku
Details
The application should be able to receive an HTTP GET request with the requested word as the path. It should return the results as JSON. See the example below:
GET /crepitus
{"crepitus":["cuprites","
pictures","piecrust"]}
GET /crepitus,paste,kinship,enlist,boaster,fresher,sinks,knits,sort
{"crepitus":["cuprites","pictures","piecrust"],"paste":["pates","peats","septa","spate","tapes","tepas"],"kinship":["pinkish"],"enlist":["elints","inlets","listen","silent","tinsel"],"boaster":["boaters","borates","rebatos","sorbate"],"fresher":["refresh"],"sinks":["skins"],"knits":["skint","stink","tinks"],"sort":["orts","rots","stor","tors"]}
GET /sdfwehrtgegfg
{"sdfwehrtgegfg":[]}