Skip to content
Jithendar
.com
Articles
News
Projects
About
Search
Open menu
Python practice
Roles
Problems
Leaderboard
Achievements
Python practice
Problems
Problems
100 problems. Read any of them; sign in to code, run and submit.
All roles
Python Developer
DevOps Engineer
AI Engineer
Generative AI Engineer
Forward Deployed Engineer
Platform Engineer
Site Reliability Engineer
Cloud Engineer
AWS Engineer
Backend Engineer
Data Engineer
Machine Learning Engineer
MLOps Engineer
Kubernetes Engineer
Infrastructure Automation Engineer
Security Engineer / DevSecOps
Full Stack Engineer
Software Development Engineer
Automation Engineer
Solutions Architect
All levels
Beginner
Easy
Medium
Hard
Expert
All topics
Strings
Lists and tuples
Loops and control flow
Functions
Formatting output
Dates and times
Classes and objects
Dataclasses
Decorators
Dictionaries
Sets
Stacks and queues
Hashing
Heaps
Tries
Sorting
Graphs
Intervals
Binary search
Dynamic programming
Simulation and state machines
asyncio
Threads and concurrency
HTTP and REST APIs
Pagination
Rate limiting
Validation and schemas
Streaming responses
Files and configuration
Log analysis
Monitoring and alerting
Infrastructure as code
CI/CD automation
Security automation
Kubernetes
AWS SDK (Boto3-style)
IAM and policies
Vectors and embeddings
Retrieval-augmented generation
LLM integration
AI agents and tools
MCP and JSON-RPC
Model evaluation
JSON
Parsing text
Regular expressions
ETL pipelines
SQL patterns in Python
Statistics
Exceptions
Retries and backoff
Resilience patterns
Context managers
Testing and test data
Caching
Generators and laziness
Time and space complexity
Filter
Classify request latencies
Loops and control flow · Lists and tuples
~5 min
Beginner
Count HTTP status classes
Dictionaries · Monitoring and alerting
~5 min
Beginner
Count ready pods
Kubernetes · Strings
~6 min
Beginner
Count unique client IPs
Sets · Log analysis · Strings
~6 min
Beginner
Count word frequencies
Strings · Dictionaries
~8 min
Beginner
Disk usage by top-level directory
Dictionaries · Strings · Files and configuration
~8 min
Beginner
Flatten nested batches
Lists and tuples · Loops and control flow
~5 min
Beginner
Format bytes for humans
Formatting output · Functions
~8 min
Beginner
Generate URL slugs
Strings
~8 min
Beginner
Leaderboard top N
Sorting · Lists and tuples
~7 min
Beginner
Merge resource tags
Dictionaries
~6 min
Beginner
Normalise and deduplicate hostnames
Strings · Lists and tuples · Sets
~8 min
Beginner
Parse a .env file
Files and configuration · Strings · Dictionaries
~10 min
Beginner
Reverse the word order
Strings · Lists and tuples
~5 min
Beginner
Running average
Loops and control flow · Statistics
~6 min
Beginner
Split work into batches
Lists and tuples · Loops and control flow
~5 min
Beginner
Summarise service statuses
Dictionaries · Loops and control flow
~6 min
Beginner
Summarise test results
Testing and test data · Dictionaries
~7 min
Beginner
Transpose a metrics table
Lists and tuples
~5 min
Beginner
Validate environment variable names
Strings · Validation and schemas
~6 min
Beginner
Check balanced brackets in a template
Stacks and queues · Strings
~10 min
Easy
Collect every page from an API
Pagination · HTTP and REST APIs
~12 min
Easy
Cosine similarity of embeddings
Vectors and embeddings · Functions
~8 min
Easy
Count log levels
Log analysis · Parsing text
~10 min
Easy
Cumulative histogram buckets
Monitoring and alerting · Statistics
~10 min
Easy
Detect flaky tests
Testing and test data · Dictionaries
~10 min
Easy
Diff two configurations
Dictionaries · Infrastructure as code
~10 min
Easy
Expand a cron field
Parsing text · Dates and times
~15 min
Easy
Exponential backoff schedule
Retries and backoff · Functions
~8 min
Easy
Group anagrams
Hashing · Dictionaries · Sorting
~10 min
Easy
Group-by aggregation
SQL patterns in Python · ETL pipelines · Dictionaries
~12 min
Easy
Keep the latest event per ID
Dictionaries · ETL pipelines
~10 min
Easy
Latest model version per stage
Dictionaries · Model evaluation
~10 min
Easy
List actions an IAM policy allows
IAM and policies · AWS SDK (Boto3-style) · JSON
~12 min
Easy
Mask secrets in nested config
Security automation · Dictionaries
~12 min
Easy
Parse a CSV export into typed records
ETL pipelines · Parsing text
~12 min
Easy
Parse an AWS ARN
AWS SDK (Boto3-style) · Parsing text · Strings
~10 min
Easy
Parse INI sections
Files and configuration · Parsing text · Dictionaries
~12 min
Easy
Plan log file rotation
Files and configuration · Lists and tuples
~12 min
Easy
Read a nested value by path
JSON · Parsing text
~12 min
Easy
Render a prompt template
LLM integration · Strings · Regular expressions
~12 min
Easy
Size S3 prefixes
AWS SDK (Boto3-style) · Dictionaries · Strings
~10 min
Easy
Sort semantic versions
Sorting · Parsing text
~12 min
Easy
Tokenise text for an LLM pipeline
LLM integration · Strings · Regular expressions
~10 min
Easy
Total Kubernetes resource requests
Kubernetes · Parsing text
~15 min
Easy
Alert on error-rate windows
Monitoring and alerting · Intervals · Simulation and state machines
~25 min
Medium
Autocomplete with a trie
Tries · Sorting
~20 min
Medium
Build a lazy generator pipeline
Generators and laziness · Time and space complexity
~20 min
Medium
Build an LRU cache
Caching · Classes and objects · Time and space complexity
~20 min
Medium
Chunk documents with overlap for RAG
Retrieval-augmented generation · Lists and tuples · LLM integration
~15 min
Medium
Clean a JSON Lines export
ETL pipelines · JSON · Validation and schemas
~20 min
Medium
Compute an invoice with dataclasses
Dataclasses · Classes and objects · Formatting output
~20 min
Medium
Decide whether to promote a canary
Monitoring and alerting · Statistics
~20 min
Medium
Fall back to a second model on timeout
asyncio · Resilience patterns · LLM integration
~20 min
Medium
Fetch concurrently with a limit
asyncio · Threads and concurrency
~20 min
Medium
Find idle EC2 instances
AWS SDK (Boto3-style) · Pagination
~20 min
Medium
Find the first bad build
Binary search · Time and space complexity
~15 min
Medium
Keyword retrieval with TF-IDF
Retrieval-augmented generation · Statistics · Dictionaries
~25 min
Medium
Lowest-latency route between services
Graphs · Heaps
~25 min
Medium
Merge maintenance windows
Intervals · Sorting
~15 min
Medium
Most frequent errors in a stream
Heaps · Hashing · Generators and laziness
~15 min
Medium
Order deployments by dependency
Graphs · Sorting
~20 min
Medium
p95 latency per route
Log analysis · Statistics · Parsing text
~20 min
Medium
Plan an S3 cleanup in batches
AWS SDK (Boto3-style) · Pagination · Lists and tuples
~20 min
Medium
Plan changes from desired state
Infrastructure as code · Dictionaries
~20 min
Medium
Repair structured output from an LLM
LLM integration · JSON · Parsing text
~20 min
Medium
Report unhealthy pods
Kubernetes · JSON · Monitoring and alerting
~20 min
Medium
Resolve variable references
Files and configuration · Graphs · Parsing text
~20 min
Medium
Run health checks in parallel threads
Threads and concurrency · Exceptions
~20 min
Medium
Scale features for a model
Statistics · Vectors and embeddings · Lists and tuples
~15 min
Medium
Summarise a Terraform plan
Infrastructure as code · JSON
~15 min
Medium
Time code with a context manager
Context managers · Classes and objects · Exceptions
~15 min
Medium
Token bucket rate limiter
Rate limiting · Simulation and state machines
~20 min
Medium
Validate a request against a schema
Validation and schemas · JSON
~25 min
Medium
Write a retry decorator
Decorators · Retries and backoff · Exceptions
~20 min
Medium
Async worker pool with retries
asyncio · Retries and backoff · Threads and concurrency
~30 min
Hard
Compute the next cron run
Dates and times · Parsing text · Simulation and state machines
~40 min
Hard
Detect latency anomalies with z-scores
Statistics · Monitoring and alerting · Time and space complexity
~25 min
Hard
Diversify retrieval with MMR
Retrieval-augmented generation · Vectors and embeddings
~30 min
Hard
Fit a conversation into a token budget
LLM integration · Time and space complexity
~30 min
Hard
Implement a circuit breaker
Resilience patterns · Simulation and state machines · Classes and objects
~30 min
Hard
Parse a server-sent event stream
Streaming responses · Parsing text · Generators and laziness
~30 min
Hard
Partition keys with a consistent hash ring
Hashing · Binary search
~30 min
Hard
Plan multi-region traffic
Resilience patterns · Sorting · Simulation and state machines
~30 min
Hard
Plan server capacity at minimum cost
Dynamic programming · Time and space complexity
~40 min
Hard
Precision, recall and F1
Model evaluation · Statistics
~25 min
Hard
Report vulnerable dependencies
Security automation · Parsing text · Sorting
~30 min
Hard
Resolve package versions
Graphs · Parsing text · Sorting
~40 min
Hard
Scan code for leaked secrets
Security automation · Regular expressions · Statistics
~30 min
Hard
Simulate a Kubernetes rolling update
Kubernetes · Simulation and state machines
~30 min
Hard
Sync through a rate-limited API
Rate limiting · Retries and backoff · Pagination
~35 min
Hard
Window functions in Python
SQL patterns in Python · Sorting · ETL pipelines
~30 min
Hard
Advance a Raft leader's commit index
Simulation and state machines · Sorting
~45 min
Expert
Build a resilient LLM gateway
Resilience patterns · Retries and backoff · LLM integration
~60 min
Expert
Exactly-once effects over at-least-once delivery
Simulation and state machines · Hashing · ETL pipelines
~45 min
Expert
Orchestrate an agent's tool plan
AI agents and tools · Graphs · Retries and backoff
~60 min
Expert
Order events with vector clocks
Simulation and state machines · Dictionaries
~40 min
Expert
Route MCP tool calls over JSON-RPC
MCP and JSON-RPC · Validation and schemas · JSON
~60 min
Expert
Simulate the Horizontal Pod Autoscaler
Kubernetes · Simulation and state machines · Monitoring and alerting
~45 min
Expert
Weighted fair-share job scheduler
Heaps · Simulation and state machines
~60 min
Expert