Giter Site home page Giter Site logo

thiendang-20231214's People

Watchers

 avatar

thiendang-20231214's Issues

Implement Code Inspector module to demonstate requirement in the Challenge

Test Question No. 1

  1. Please use React, but please don’t use create-react-app, Consider other better alternative
  2. Try to use Material UI v5 for UI framework or any other preferred framework
  3. Please use Typescript only
  4. Any library that can help with your development is acceptable.
  5. Please use the following links to get prices, and info. This will give you some ideas
          1. [https://www.coingecko.com/en/api/documentation
          2. [https://www.coingecko.com/en/coins/ethereum
  6. Freedom to design a user-friendly UI screen to display cryptocurrency price chart, But the user must be able to do the following actions.
          1. The user can search coins but not necessarily give us the correct exact coin name
          2. The search box should show trending coins to suggest users at first when the box has the focus
          3. User can see their given coin price chart in a specific time range, But we should set the default range at first.
          4. The user can choose other ranges, But we should not allow options too much
          5. User can see their given coin price statistic as well (ohlc)
  7. Please dockerise it.
  8. After you are satisfied with your work, please share your GitHub repo to my email.

Test Question No. 1

Given an array of stock prices, where the value at each index represents the price of a stock on a specific day, implement a function calculateMaxProfit to determine the maximum profit that can be achieved by buying and selling the stock on different days.

  • The function should take an array of stock prices as input.
  • It should return the maximum profit that can be obtained by buying one unit of stock on a specific day and selling it on a future day.
  • If no profit can be achieved, the function should return 0.

Example:
const stockPriceList = [2, 3, 6, 4, 3];
calculateMaxProfit(stockPriceList); // Should return 4

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.