Skip to content
Jithendar
.com
Articles
News
Projects
About
Search
Open menu
Python practice
Roles
Problems
Leaderboard
Achievements
Python practice
Problems
Problems
17 problems for Generative AI Engineer. 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
Split work into batches
Lists and tuples · Loops and control flow
~5 min
Beginner
Cosine similarity of embeddings
Vectors and embeddings · Functions
~8 min
Easy
Exponential backoff schedule
Retries and backoff · Functions
~8 min
Easy
Render a prompt template
LLM integration · Strings · Regular expressions
~12 min
Easy
Tokenise text for an LLM pipeline
LLM integration · Strings · Regular expressions
~10 min
Easy
Chunk documents with overlap for RAG
Retrieval-augmented generation · Lists and tuples · LLM integration
~15 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
Keyword retrieval with TF-IDF
Retrieval-augmented generation · Statistics · Dictionaries
~25 min
Medium
Repair structured output from an LLM
LLM integration · JSON · Parsing text
~20 min
Medium
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
Build a resilient LLM gateway
Resilience patterns · Retries and backoff · LLM integration
~60 min
Expert
Orchestrate an agent's tool plan
AI agents and tools · Graphs · Retries and backoff
~60 min
Expert
Route MCP tool calls over JSON-RPC
MCP and JSON-RPC · Validation and schemas · JSON
~60 min
Expert