Skip to Content

Design an Online Coding Competition Platform System Design Question

Home | Coding Interviews | System Design | Design an Online Coding Competition Platform System Design Question

Design a platform, similar to leetcode, which allows software engineers to prepare for coding interviews by answering coding questions and posting feedback on other users solutions. The platform should allow users with the correct permissions to be able to host coding competitions. The functional requirements are for a user to view a list of problems, view a specific problem, view specific coding solutions for that problem. The competitions also have their own functional requirements such as the ability to run and judge a user's code, and a live leaderboard and some metric for choosing who wins the competition. For non functional requirements, availability is of the most importance. Security when running the users code is also important. The competition needs to support 100k users and the live leaderboard should be give fresh results.

Posted by grwgreg 4 months ago

Related Problems

A video service (like youtube) has many viewers watching videos. Given a stream of the video IDs that are being watched, we need to find the top K most viewed videos for different periods of time (1 hour, 1 day, 1 month, all time). For the top K videos returned, we also want the count of views during this period.

Design an app like google maps. The app should provide the quickest possible route between two arbitrary locations. It should provide an ETA, estimated time to reach a destination, using current traffic data.

Sending user notifications is a common requirement in system design. Design a notification service for an organization. The system will use shared services for the underlying messaging implementation (email, sms, push notifications, etc) so the actual messaging implementation does not need to be designed. The system should support a user publishing a notification to a single user or groups of users. Notifications can be triggered manually via a web UI or programmatically via an API. Users should be able to view their past notifications they published. If a user is unable to receive a notification, they should still receive it at the next opportunity and not miss the message. The notification service should scale to billions of notifications per day, with messages delivered within a few seconds, with five 9s uptime.

Design a url shortener service (similar to tinyurl).

1. Generate expiring unique short URL from provided URL

2. Redirect users to the correct website when they navigate to the short URL