Write a program that will determine the type of a triangle. It should take the lengths of the triangle’s three edges as input, and return whether the triangle is equilateral, isosceles or scalene.
We are looking for solutions that showcase problem solving skills and structural considerations that can be applied to larger and potentially more complex problem domains. Pay special attention to tests, readability of code and error cases.
Please make a simple UI for this challenge. The use of a standard UI library is encouraged. The way you reflect upon your decisions is important to us, why we ask you to include a brief discussion of your design decisions and implementation choices. The resulting code and discussion is vital for us and will be used as a way for us to validate your engineering skills.
Install pre-commit hook to not skip tests while committing new changes. Note: There might be a Jenkins pipeline that is responsible of checking lint and tests in the future.
yarn prepare
Then execute the following commands to install the dependencies and start the project:
-
yarn install
-
yarn start