8 pts
DSA purpose and cost-model thinking
Which statement best describes why DSA matters in production engineering?
This assessment verifies the Engineering Cost Models module. Passing it contributes up to 6 points in the 0-6 score band.
Questions
8
Limit
60m
Pass
85%
Score
+6
8 pts
Which statement best describes why DSA matters in production engineering?
14 pts
A notification service checks whether an event ID was already sent before inserting a new notification. The current implementation scans the user's full notification array on every event. At 100 notifications it is fine; at 50,000 notifications users see delayed alerts. What change would you propose, and what trade-off must you mention?
14 pts
Review this code: `users.filter(u => activeIds.includes(u.id))`. `users` can contain 200,000 records and `activeIds` can contain 80,000 IDs. Explain the risk, rewrite the core idea, and state the before/after complexity.
14 pts
An ingestion worker receives millions of events and must write each unique event once. A teammate wants O(1) extra memory by scanning the accepted output list for every incoming event. Push back or accept the proposal with a precise time-space trade-off.
16 pts
A support product needs keyword search across 2 million notes, 500 queries per second, p95 latency under 150 ms, writes every second, and a memory cap. Compare naive scanning with an index-based approach and defend the trade-off.
14 pts
Given a stream/list of event names, return the first event that appears twice. Optimize for millions of events. Include complexity and edge-case behavior.
10 pts
A teammate wants to replace every array in a small settings screen with maps because maps have faster lookup. Push back with a precise engineering argument.
10 pts
Which answer is strongest in a SkillSkore assessment?