Skip to content

Stdlib practice problems in Python

Difficulty:
Category & tags Filters active
Category:
Tag:

Showing 42 of 42

Title Difficulty
Build a JSON Converter Other Code Can Extend Hard
Build a Task Queue That Keeps Arrival Order for Ties Medium
Cache a Report Total Until You Clear It Medium
Change an Attribute for One Block and Put It Back Medium
Close a Stream Only If You Opened It Easy
Compute a Rolling Median with a Bounded deque Medium
Count and Total Rows per Key with groupby Medium
Count N-Grams and Break Ties with Counter Easy
Decode a Three-Bit Permission Mask Medium
Find Every Unpicklable Value in a Nested Payload Medium
Find Large Files Without Entering Skipped Folders Medium
Find Mutable Defaults That Instances Share Easy
Find the Files Missing from a Wheel Easy
Find the First Error with a Generator Easy
Find the Largest Drop from a Running Peak Easy
Find the Next Daily Run in a Time Zone Hard
Format Table Rows and Money Amounts Easy
Give a Class Its Own Format Codes Medium
Give Each Object Its Own Cache Medium
Group Rows by Key and Return a Plain dict Easy
Hide Secret Fields When You Print a Record Medium
Keep a Joined Path Inside Its Root Folder Easy
Line Up Receipt Columns with f-Strings Easy
Load a Server Config and Report the First Bad Setting Medium
Log from a Library the Right Way Easy
Merge Overlapping Ranges with a NamedTuple Medium
Migrate a Status Enum to StrEnum Medium
Open a List of Resources and Close Them All Hard
Page Records and Check the Size at Call Time Easy
Parse Records in Batches with a Generator Medium
Release a Connection However the Stream Ends Hard
Resolve a Setting and Report the Layer It Came From Medium
Retry a Flaky Call and Preset Arguments with partial Medium
Show Values with repr and str in f-Strings Easy
Sort Version Numbers with a Dataclass Easy
Sort Version Strings with Pre-Releases First Medium
Speed Up Edit Distance with a Cached Helper Medium
Take n Items Across Chunks Without Reading Ahead Easy
Tell Fields Apart from Class Variables Easy
Trace a Log Record Up the Logger Tree Medium
Turn Log Fields into JSON-Safe Data Hard
Work Out the First Entry on sys.path Medium