Final Challenge
Apply your knowledge to real-world scenarios. Identify complexities and justify your answers!
š Challenge Structure
- ā 10 real-world scenarios
- ā Mix of multiple choice and drag-and-drop
- ā Justify your reasoning
- ā Get instant feedback
1. Social Media Feed
Scenario AnalysisA social media app displays your feed by fetching the latest 50 posts. The posts are stored in a database indexed by timestamp. What's the speed to fetch these posts?
2. Autocomplete System
Code Analysis3. Finding Duplicates
Program OptimizationYou need to check if an array of 1 million user IDs contains any duplicates. Which approach is best?
4. Database Query
System DesignA database has 10 million records with an index on the "email" field. Looking up a user by email is:
5. Image Processing
Nested StepsApplying a blur filter to an nĆn pixel image requires averaging each pixel with its neighbors. Speed?
6. Route Planning
Graph AlgorithmsA GPS app finds the shortest path between two cities in a road network with n intersections. Using Dijkstra's program with a priority queue:
7. Shopping Cart
Data Structure ChoiceAn e-commerce cart needs to frequently check "is item X in cart?" and add/remove items. Best data structure?
8. Password Strength
Security AnalysisTesting all possible 8-digit numeric PINs (00000000 to 99999999) is:
9. Video Streaming
Buffer ManagementA video player maintains a buffer of the next 30 seconds. Adding a frame to the end and removing from the front:
10. Code Review Challenge
Optimization TaskA junior developer wrote this code to check for unique elements. What's wrong?