Python practice

Grouped by pattern. Plain Python first, pandas where it earns its place. Runs on Pyodide in your browser, with a 5-second budget per test.

0 of 15 shipped

Core data structures 2

#ProblemTopicLevelTimeStatus
01Group rows by a keyCore data structuresFoundationseasy10m○ not started
02LRU cacheCore data structuresFoundationsmedium25m○ not started

Parsing logs and files 2

#ProblemTopicLevelTimeStatus
03Count status codes in an access logParsing logs and filesPipelineseasy15m○ not started
04Split a CSV line with quoted fieldsParsing logs and filesPipelineshard35m○ not started

Generators and streaming 2

#ProblemTopicLevelTimeStatus
05Batch a stream lazilyGenerators and streamingPipelineseasy15m○ not started
06Streaming moving averageGenerators and streamingPipelinesmedium20m○ not started

Hashing and idempotency 2

#ProblemTopicLevelTimeStatus
07Stable content hash for a recordHashing and idempotencyPipelineseasy15m○ not started
08Idempotent upsert by versionHashing and idempotencyPipelinesmedium25m○ not started

Dataframes 2

#ProblemTopicLevelTimeStatus
09Revenue by category in pandasDataframesPipelinesmedium20m○ not started
10Point-in-time price lookupDataframesData modellinghard35m○ not started

Append-only log and replay 2

#ProblemTopicLevelTimeStatus
11Replay a key-value logAppend-only log and replayStorageeasy15m○ not started
12Recover a log with a torn final recordAppend-only log and replayStoragehard35m○ not started

Cosine similarity and top-k 3

#ProblemTopicLevelTimeStatus
13Top-k by cosine similarityCosine similarity and top-kEmbeddingsmedium25m○ not started
14One step of cosine k-meansCosine similarity and top-kEmbeddingsmedium30m○ not started
15Recall@k of an approximate indexCosine similarity and top-kRetrievalmedium25m○ not started