glenrage / gis-problem

Link to deployed APP

Home Page:https://peaceful-chamber-36077.herokuapp.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

IntegralGIS-problem

For this coding question I am looking for you to create an implementation that finds the longest prefix to an input string.

For example, if we had these 3 strings:

abc
abcd
abcdde

and this input string:
abcdd

Which of the top 3 is the longest prefix to the string abcdd?

The answer is "abcd", because "abc" is a prefix but it is shorter than abcd,
 and abcdde is not a prefix to abcdd.

Because the instructions said implement however you see fit, as a coding assignment to assess skills I felt it was only fitting to build a small App to test and interact with the Algorithm.

Deployed Application Link

All solutions and commentary can be found in "problem.js" in the root directory

To install on local machine as well as run tests

git clone https://github.com/glenrage/gis-problem.git

cd gis-problem

npm i

npm run start (launch app)

open a web browser and direct to http://localhost:3000

To run tests after installing

npm run test

About

Link to deployed APP

https://peaceful-chamber-36077.herokuapp.com/


Languages

Language:JavaScript 82.9%Language:CSS 9.2%Language:HTML 7.9%