Twilio Peer Coding Round

twilio logo
twilio
June 18, 20257 reads

Summary

I experienced a Peer Coding Round at Twilio, which involved implementing a REST API for stock price management based on the LeetCode problem 'Stock Price Fluctuation'.

Full Experience

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.

Interview Questions (1)

Q1
Implement REST API for Stock Price Fluctuation with CRUD
System DesignHard

Implement a REST API around the LeetCode problem Stock Price Fluctuation. Each data point will have stockCode, timestamp, and price. The API should support the following CRUD operations:

  • POST: Store a data point for the given stock and timestamp.
  • PUT: Update the price for the given stock and timestamp.
  • DELETE: Delete the price point of the given stock and timestamp.
  • GET: Retrieve the latest, minimum, and maximum stock prices for the given stock.
Note: Timestamp is unique for any given stock.

Discussion (0)

Share your thoughts and ask questions

Join the Discussion

Sign in with Google to share your thoughts and ask questions

No comments yet

Be the first to share your thoughts and start the discussion!