Twilio Peer Coding Round

Posted
18 Jun 2025
401 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'.

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)

  1. 01

    Implement REST API for Stock Price Fluctuation with CRUD

    System Design · Hard

    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.

    Open the problem

Know someone preparing? Send it to them:WhatsAppLinkedInX

Interviewed at Twilio recently?

Write up your rounds while you still remember the questions. It helps the next person more than you would think.

Share your experience
Discussion 0

Questions for the author, or how your own interview compared.

Join the discussion

Sign in with Google to comment or ask the author a question.

No comments yet

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