Giter Site home page Giter Site logo

neo-currency-converter's Introduction

Currency Conversion

Problem

Neo is looking to find the best currency conversion possible for our customers. However, we don’t have direct Canadian Dollar conversions to all currencies so we have to trade currencies for other currencies. It is possible that we can go from one currency to another, and that a currency could show up multiple times.

Example:

Convert CAD to EUR
CAD -> GBP -> EUR

There are no cycles
CAD -> EUR -> GBP -> EUR

Utilizing the API data, return the best possible conversion rate for every currency we can get, assuming we start with $100 CAD. The best possible conversion rate should yield the highest possible amount of currency that you are converting to. Given the following example, the longer route yields the higher amount (95.00) and is therefore the best conversation rate.

CAD -> HKD = 90.00`
CAD -> GBP -> DOGE -> HKD = 95.000

Get API URL

Requirements

Use one of the following languages: Javascript, Typescript, Java, C#, Python or Ruby

Ensure you comment your code

Use a REST call to get the data, do not hardcode it into your source code.

Generate a CSV file as an output that contains optimal conversions from CAD to all currencies. The file should have the following format:

Currency Code (eg. AUD, USD, BTC)
Currency Name (eg. Bitcoin, Hong Kong Dollar)
Amount of currency, given we started with $100 CAD (ie. 1500.43)
Path for the best conversion rate, pipe delimited (ie. CAD | GBP | EUR)

neo-currency-converter's People

Contributors

alex-agency 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.