系统设计

Poll Widget

高级

Question

Design a poll widget that can be easily embedded on websites, such as articles and blogs to allow website viewers to vote on options.

Poll Widget Example

Requirements

  • The widget displays the following information:
    • A list of options for users to vote on.
    • The latest number of votes for each option. This is only shown after the user has submitted a vote.
  • The following back end APIs are provided:
    • Fetching of the poll results.
    • Record a new vote on an existing poll option.
    • Remove a vote from an existing poll option.
  • It should not require much effort for a website owner to embed a poll widget within their websites.

高级问题

购买高级版,解锁高级问题及我们提供的最佳学习资料。
所有高级问题
高质量解决方案
节省时间的重点
前端系统设计指南