Twilio Peer Coding Round
Anonymous User
936

https://leetcode.com/problems/stock-price-fluctuation/description/ - implement rest api around this problem to support CRUD operations.

Each datapoint will have stockCode, timestamp, price.

  1. POST -> store the data point for the give stock and timestamp.
  2. PUT -> Update the price for the given stock and timestamp.
  3. DELETE -> Delete the price point of the given stock and timestamp.
  4. GET -> latest, minimun, maximum stockPrice for the given stock

timestamp is unique in any given stock.

Comments (3)