- Solution may be in any language and use any implementation or algorithm
- Solution must find the longest word in a corpus. Words are only considered to be space and newline delimited text.
- Solution is timed from first loading/reading of the corpus to the return of the longest word and/or length of the word.
- Parsing arguments is not counted
- Runtime initialization is not counted
- Time should be measured in MS
Note: Solutions are currently divided into two categories: single-threaded and concurrent.
Write your solution, add your name to the top, and send a pull request. It would be super awesome if you also updated the Dockerfile and the run_tests.sh
to include your submission, but that's not necessary.
Name | Language | Time (ms) | Notes |
---|---|---|---|
@dnesbitt03qub | C++ | 477 | Striding implementation |
@pard68 | Rust | 1041 | |
@pard68 | Rust | 1083 | HashTable |
Jeffrey Corcoran | C# | 2275 | |
@bbriggs | Go | 2849 | |
@zombeej | JavaScript | 3941 | |
@drewpearce | Cython | 6581 | Loop w/ longest |
@specs | Python | 12245 | Comprehensions |
@samwi | JRuby | 13565 | |
@specs | Python | 14444 | Loop and sort |
@specs | Python | 16257 | Loop w/ longest |
@samwi | Ruby | 24383 | |
@pard68 | Bash | ~5543 | Native speed - Not running in Docker |
Name | Language | Time (ms) | Notes |
---|---|---|---|
@pard68 | Rust | 164 | HashTable |
Jeffrey Corcoran | C# | 716 |