Skip to Content

Coding Interviews

Functional Requirements:

1. Users can upload videos

2. Users can view videos

3. Search videos by video title

4. Videos should have like and view counts

5. Users can comment on videos

Proximity services help users find and access various services given their current location. The functional requirements are for users to be able to add an attraction such as a business and for users to be able to search for attractions and add reviews to attractions. The nonfunctional requirements are high scalability to support a large user base (50 million daily active users) as well as low latency and high availability. Assume 1,000 new attractions are added a day and the average users leaves 2 reviews per month.

A CDN (Content Distribution Network or Content Delivery Network) is a geographically distributed file storage service that is designed to serve static content to a large number of geographically distributed users quickly. Design a basic distributed storage system that could be used as a CDN.

Design a monitoring and alerting service similar to PagerDuty that can be used to handle production incidents in real-time. The system should receive alerts from external systems, identify the severity of incidents, and notify on-call engineers through their preferred channels (e.g., SMS, email, or push notifications). The system should also support configurable on-call schedules with both primary and secondary engineers assigned to incidents. Additionally, the system must have an escalation mechanism to ensure incidents are addressed based on their priority. Describe how you would design the system to scale effectively and maintain reliability during peak loads.

Outline how you would create a tinder style dating app. The functional requirements are the ability to create user profiles, location based recommendations as well as the ability for a user to change their location (passport mode), preference settings, and matching algorithms. You can ignore chat functionality because that is often covered in other system design problems. The nonfunctional requirements are the ability for the application to scale to a large number of users as well as spikes in usage at different times. Availability and low latency are also a concern.

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.

Functional Requirements

1. Group chats

2. Send and receive messages in real time

3. Keep old messages in a database so users can view old group chats and messages

4. Notifications, read receipts and typical chat app functionality

Design a reservation and payment system for a parking garage. Functional requirements include "spot booking", the ability to make payments, prevent booking the same parking spot, different classes of parking spots (compact,regular,large vehicles, handicap) with different prices. The non functional requirements include high consistency and availability.