Twilio Peer Coding Round
- Posted
- 18 Jun 2025
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'.
How it went
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.
Questions asked (1)
- 01
Implement REST API for Stock Price Fluctuation with CRUD
System Design · Hard
Open the problemImplement a REST API around the LeetCode problem Stock Price Fluctuation. Each data point will have
stockCode,timestamp, andprice. 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.