Giter VIP home page Giter VIP logo

amity-test2's Introduction

Eko Delivery Service

Installation

$ npm install
$ npm run build

Start the app

$ npm run start:prod

The app will start listening for connections at port 3000. Go to http://localhost:3000

How to use

alt text

Input the route inside Routes field.

Input case 1

Calcualte delivery cost section deals with input case 1. Enter route such as A-B-E and click Calculate. It will display the number below.

Input case 2

Calcualte possible delivery routes section deals with input case 2. Input fields below and click Calculate. It will display the number below.

Fields

  • Source (required) - Town name to start
  • Destination (required) - Town name to stop
  • Maximum Visit (optional) - How many revisit allow for each towns
  • Max stop (optional) - Maximum hops allowed before reaching the destination. If number of hops exceed, App will dismiss the route.
  • Maximum Cost (optional) - Maximum cost allowed before reaching the destination.

Development

$ npm start

Testing

$ npm test

FYI

I think this problem focuses extensively on algorithms too much. React is just a sprinkle on top. If you know nothing about graph theory, you're pretty much doom from the start. You don't even need to know react to solve this problem. Removing react out, the context remains the same. It also requires production-like project workflow and code which takes a decent time to setup. The problem can be solved within expected two days if solution concepts are laid out. The only thing left is the implementation, and working on it full-time.

It would be better if there are some more details on what routes are, rather than displaying them as number only. I can't verify the solution.

amity-test2's People

Contributors

makemek avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.