You are on page 1of 2

Ardoq Coding Test, 2018

Ardoq Coding Test


The things we value the most in this test are readability, structure and simplicity of
your solutions. We do not care which language you pick for the job, as long as it’s
not some esoteric language like ​”Whitespace”​ or ​“Brainfuck”​. Furthermore, if you
assume anything, comment it in your code.

For question 2., please choose one of the options.

1. ​ Create a method that, given a list of integers, returns the highest product
between 3 of those numbers. Example:

[1, 10, 2, 6, 5, 3] = 300

Please provide tests that show your solution actually works.


Please state your assumptions.

2a. ​Create a simple Calculator REST API using JSON that supports input of
mathematical expressions with the basic operations: +, -, * and /. It should allow the
usage of brackets and understand operator precedence. Example:

POST /calc

{ “expression”: “-1 * (2 * 6 / 3)” }

Returns:

{ “result”: “-4” }

Extra points for the ability to retrieve history (usage of DB not mandatory).

2b. ​Host a website using whichever service you prefer (Firebase, Heroku, AWS,
Linode, etc.) that uses a public API of your liking (e.g. ​Oslo bysykkel​, ​Google Maps​,
Twitter​, ...) to display some data in a nice way. You can do whatever you want as
long as we’re able to confirm the following:

- ability to use a public API;


- ability to process data in different ways (sorting, filtering, etc.);
- ability to setup a simple front-end project;
- ability to separate design (html, css, etc.) from logic (javascript, php, etc.).
Ardoq Coding Test, 2018

The submission should be publicly accessible via a URL.

2c​​. if you you’ve already recently, single-handedly coded something similar to


questions ​2a-2b​​, you are encouraged to send that as your submission along with a
few sentences outlining why you think that is a sufficient submission. Please
provide instructions about how we can test your submission.

Submission
Please submit your solution to ​anton@ardoq.com​. For any code in your submission, please put
it in a Github repository and provide a link to that.

If you have any questions, e-mail ​anton@ardoq.com​.

You might also like