Python · from Every button I made in a loop says the last name · Tests run here
Topics: Closures
Python · from Every button I made in a loop says the last name · Tests run here
Topics: Closures
Python · from Every button I made in a loop says the last name · Tests run here
Topics: Closures
Python · from My import got 100 times slower when the data grew 10 times · Tests run here
Topics: list, tuple, dict and set, and what each operation costs
Python · from My import got 100 times slower when the data grew 10 times · Tests run here
Topics: list, tuple, dict and set, and what each operation costs; Names, objects and references
Python · from My import got 100 times slower when the data grew 10 times · Tests run here
Topics: list, tuple, dict and set, and what each operation costs
Python · from My import got 100 times slower when the data grew 10 times · Tests run here
Topics: list, tuple, dict and set, and what each operation costs; Decisions and loops: if, for and while
Python · from I removed the bad readings, but one is still there · Tests run here
Topics: Comprehensions
Python · from I removed the bad readings, but one is still there · Tests run here
Topics: Comprehensions; Mutable and immutable objects
Python · from I removed the bad readings, but one is still there · Tests run here
Topics: Comprehensions; list, tuple, dict and set, and what each operation costs
Python · from After one error, debug mode stayed on for everyone · Tests run here
Topics: Context managers
Python · from After one error, debug mode stayed on for everyone · Tests run here
Topics: Context managers
Python · from After one error, debug mode stayed on for everyone · Tests run here
Topics: Context managers; Exceptions
Python · from My loop never stops · Tests run here
Topics: Decisions and loops: if, for and while
Python · from My loop never stops · Tests run here
Topics: Decisions and loops: if, for and while
Python · from My loop never stops · Tests run here
Topics: Decisions and loops: if, for and while
Python · from Count errors in a 10 GB log · Streaming · Tests run here
Topics: Iterators and generators; collections, itertools and functools
Python · from Count errors in a 10 GB log · Streaming · Tests run here
Topics: Iterators and generators
Python · from Count errors in a 10 GB log · Streaming · Tests run here
Topics: Iterators and generators; collections, itertools and functools
Python · from Count errors in a 10 GB log · Top k · Tests run here
Topics: Iterators and generators; Heaps: top-k, k-way merge, two heaps
Python · from I added a field, and two different orders came out equal · Tests run here
Topics: Dataclasses
Python · from I added a field, and two different orders came out equal · Tests run here
Topics: Dataclasses
Python · from I added a field, and two different orders came out equal · Tests run here
Topics: Dataclasses
Python · from I pasted the same timing code into twenty functions · Tests run here
Topics: Decorators, with arguments and functools.wraps
Python · from I pasted the same timing code into twenty functions · Tests run here
Topics: Decorators, with arguments and functools.wraps
Python · from I pasted the same timing code into twenty functions · Tests run here
Topics: Decorators, with arguments and functools.wraps; Exceptions
Python · from My server ignored the port I set · Tests run here
Topics: Exceptions
Python · from My server ignored the port I set · Tests run here
Topics: Exceptions; Your first functions: def and return
Python · from My server ignored the port I set · Tests run here
Topics: Exceptions; Your first functions: def and return
Python · from My server ignored the port I set · Tests run here
Topics: Exceptions; list, tuple, dict and set, and what each operation costs
Python · from My script can’t find its file when I run it from another folder · Tests run here
Topics: Files and pathlib
Python · from My script can’t find its file when I run it from another folder · Tests run here
Topics: Files and pathlib; Exceptions
Python · from My script can’t find its file when I run it from another folder · Tests run here
Topics: Files and pathlib; Decisions and loops: if, for and while
Python · from My script can’t find its file when I run it from another folder · Tests run here
Topics: Files and pathlib; list, tuple, dict and set, and what each operation costs
Python · from My function printed the total, but gave me None · Tests run here
Topics: Your first functions: def and return
Python · from My function printed the total, but gave me None · Tests run here
Topics: Your first functions: def and return
Python · from My function printed the total, but gave me None · Tests run here
Topics: Your first functions: def and return; Decisions and loops: if, for and while
Python · from I closed the window and my code was gone · Tests run here
Topics: Install Python and run your first file
Python · from I closed the window and my code was gone · Tests run here
Topics: Install Python and run your first file
Python · from I closed the window and my code was gone · Tests run here
Topics: Install Python and run your first file
Python · from My function remembers the last call · Tests run here
Topics: Functions, *args, **kwargs and the mutable-default trap
Python · from My function remembers the last call · Tests run here
Topics: Functions, *args, **kwargs and the mutable-default trap; Numbers, strings, slicing and f-strings
Python · from My function remembers the last call · Tests run here
Topics: Functions, *args, **kwargs and the mutable-default trap; Mutable and immutable objects
Python · from I pushed my fix, and my teammate’s work disappeared · Tests run here
Topics: Git for everyday work: commit, branch, merge, rebase, pull requests
Python · from I pushed my fix, and my teammate’s work disappeared · Tests run here
Topics: Git for everyday work: commit, branch, merge, rebase, pull requests
Python · from I pushed my fix, and my teammate’s work disappeared · Tests run here
Topics: Git for everyday work: commit, branch, merge, rebase, pull requests
Python · from Python says my formula has too many nested parentheses · Tests run here
Topics: How Python runs your code
Python · from Python says my formula has too many nested parentheses · Tests run here
Topics: How Python runs your code
Python · from Python says my formula has too many nested parentheses · Tests run here
Topics: How Python runs your code; Functions, *args, **kwargs and the mutable-default trap
Python · from Python says my formula has too many nested parentheses · Tests run here
Topics: How Python runs your code
Python · from I started a new game, and the old board changed too · Tests run here
Topics: is vs ==, shallow vs deep copy
Python · from I started a new game, and the old board changed too · Tests run here
Topics: is vs ==, shallow vs deep copy
Python · from I started a new game, and the old board changed too · Tests run here
Topics: is vs ==, shallow vs deep copy
Python · from The bug happened at 3 a.m., and my prints told me nothing · Tests run here
Topics: Logging
Python · from The bug happened at 3 a.m., and my prints told me nothing · Tests run here
Topics: Logging; Exceptions
Python · from The bug happened at 3 a.m., and my prints told me nothing · Tests run here
Topics: Logging
Python · from pip says it’s installed, but Python can’t find it · Tests run here
Topics: Modules, packages and virtual environments
Python · from pip says it’s installed, but Python can’t find it · Tests run here
Topics: Modules, packages and virtual environments
Python · from pip says it’s installed, but Python can’t find it · Tests run here
Topics: Modules, packages and virtual environments; list, tuple, dict and set, and what each operation costs
Python · from Python says my list can’t be a dict key · Tests run here
Topics: Mutable and immutable objects; list, tuple, dict and set, and what each operation costs
Python · from Python says my list can’t be a dict key · Tests run here
Topics: Mutable and immutable objects; Names, objects and references
Python · from Python says my list can’t be a dict key · Tests run here
Topics: Mutable and immutable objects; list, tuple, dict and set, and what each operation costs
Python · from I changed my copy, and the original changed too · Tests run here
Topics: Names, objects and references; list, tuple, dict and set, and what each operation costs
Python · from I changed my copy, and the original changed too · Tests run here
Topics: Names, objects and references; Your first functions: def and return
Python · from I changed my copy, and the original changed too · Tests run here
Topics: Names, objects and references; list, tuple, dict and set, and what each operation costs
Python · from My shop’s total says 0.30000000000000004 · Tests run here
Topics: Numbers, strings, slicing and f-strings
Python · from My shop’s total says 0.30000000000000004 · Tests run here
Topics: Numbers, strings, slicing and f-strings
Python · from My shop’s total says 0.30000000000000004 · Tests run here
Topics: Numbers, strings, slicing and f-strings; list, tuple, dict and set, and what each operation costs
Python · from My shop’s total says 0.30000000000000004 · Tests run here
Topics: Numbers, strings, slicing and f-strings
Python · from My bank opened the same account twice · Tests run here
Topics: Classes: inheritance, MRO, super() and dunder methods
Python · from My bank opened the same account twice · Tests run here
Topics: Classes: inheritance, MRO, super() and dunder methods
Python · from My bank opened the same account twice · Tests run here
Topics: Classes: inheritance, MRO, super() and dunder methods
Python · from My sales report loop takes twenty minutes · Tests run here
Topics: pandas basics: DataFrames, filtering, groupby and merge
Python · from My sales report loop takes twenty minutes · Tests run here
Topics: pandas basics: DataFrames, filtering, groupby and merge
Python · from My sales report loop takes twenty minutes · Tests run here
Topics: pandas basics: DataFrames, filtering, groupby and merge
Python · from Someone set the price to -5, and my report broke · Tests run here
Topics: @property, class methods and static methods
Python · from Someone set the price to -5, and my report broke · Tests run here
Topics: @property, class methods and static methods
Python · from Someone set the price to -5, and my report broke · Tests run here
Topics: @property, class methods and static methods
Python · from I fixed one bug, and two old ones came back · Tests run here
Topics: pytest basics
Python · from I fixed one bug, and two old ones came back · Tests run here
Topics: pytest basics; Exceptions
Python · from I fixed one bug, and two old ones came back · Tests run here
Topics: pytest basics
Python · from Python says my counter has no value · Tests run here
Topics: Scope and the LEGB rule; Decisions and loops: if, for and while
Python · from Python says my counter has no value · Tests run here
Topics: Scope and the LEGB rule; Mutable and immutable objects
Python · from Python says my counter has no value · Tests run here
Topics: Scope and the LEGB rule
Python · from Counting words took me twenty lines, and it was slow · Tests run here
Topics: collections, itertools and functools
Python · from Counting words took me twenty lines, and it was slow · Tests run here
Topics: collections, itertools and functools
Python · from Counting words took me twenty lines, and it was slow · Tests run here
Topics: collections, itertools and functools; Iterators and generators
Python · from The total came out as “33”, three files away from the bug · Tests run here
Topics: Type hints
Python · from The total came out as “33”, three files away from the bug · Tests run here
Topics: Type hints
Python · from The total came out as “33”, three files away from the bug · Tests run here
Topics: Type hints
Python · from My calculator says 2 + 3 is 23 · Tests run here
Topics: Variables, print() and input()
Python · from My calculator says 2 + 3 is 23 · Tests run here
Topics: Variables, print() and input()
Python · from My calculator says 2 + 3 is 23 · Tests run here
Topics: Variables, print() and input()
SQL · from The sales tile says two customers ordered, but it was only Hugo · Tests run here
Topics: Aggregates
SQL · from The sales tile says two customers ordered, but it was only Hugo · Tests run here
Topics: Aggregates
SQL · from The sales tile says two customers ordered, but it was only Hugo · Tests run here
Topics: Aggregates
SQL · from Bigger than the order before, or just typed in late? · Tests run here
Topics: Correlated subqueries; Joins: inner, left, right, full, self and cross
SQL · from Bigger than the order before, or just typed in late? · Tests run here
Topics: Correlated subqueries; Simple subqueries
SQL · from Bigger than the order before, or just typed in late? · Tests run here
Topics: Correlated subqueries; Aggregates
SQL · from A team of one made the above-average pay list · Tests run here
Topics: CTEs; GROUP BY and HAVING
SQL · from A team of one made the above-average pay list · Tests run here
Topics: CTEs; Simple subqueries
SQL · from A team of one made the above-average pay list · Tests run here
Topics: CTEs; Joins: inner, left, right, full, self and cross
SQL · from Our “second-highest price” is the highest price · Tests run here
Topics: DISTINCT
SQL · from Our “second-highest price” is the highest price · Tests run here
Topics: DISTINCT
SQL · from Our “second-highest price” is the highest price · Tests run here
Topics: DISTINCT
SQL · from Grace got the window-shopper email twice · Tests run here
Topics: EXISTS vs IN vs JOIN, and the NOT IN + NULL trap; DISTINCT
SQL · from Grace got the window-shopper email twice · Tests run here
Topics: EXISTS vs IN vs JOIN, and the NOT IN + NULL trap; Correlated subqueries
SQL · from Grace got the window-shopper email twice · Tests run here
Topics: EXISTS vs IN vs JOIN, and the NOT IN + NULL trap; GROUP BY and HAVING
SQL · from Grace shopped on one day and got the loyalty coupon · Tests run here
Topics: GROUP BY and HAVING
SQL · from Grace shopped on one day and got the loyalty coupon · Tests run here
Topics: GROUP BY and HAVING
SQL · from Grace shopped on one day and got the loyalty coupon · Tests run here
Topics: GROUP BY and HAVING
SQL · from Dana never paid, and finance never noticed · Tests run here
Topics: Joins: inner, left, right, full, self and cross; GROUP BY and HAVING
SQL · from Dana never paid, and finance never noticed · Tests run here
Topics: Joins: inner, left, right, full, self and cross
SQL · from Dana never paid, and finance never noticed · Tests run here
Topics: Joins: inner, left, right, full, self and cross
SQL · from Each customer's latest order · Top N per group · Tests run here
Topics: Window functions: ranking, LAG, LEAD, running totals, frames
SQL · from Each customer's latest order · Top N per group · Tests run here
Topics: Window functions: ranking, LAG, LEAD, running totals, frames
SQL · from Each customer's latest order · Previous row · Tests run here
Topics: Window functions: ranking, LAG, LEAD, running totals, frames; Date and string functions
SQL · from Each customer's latest order · Running total · Tests run here
Topics: Window functions: ranking, LAG, LEAD, running totals, frames
SQL · from Dana first ordered in August and got September’s welcome email · Tests run here
Topics: Logical query processing order
SQL · from Dana first ordered in August and got September’s welcome email · Tests run here
Topics: Logical query processing order; Joins: inner, left, right, full, self and cross
SQL · from Dana first ordered in August and got September’s welcome email · Tests run here
Topics: Logical query processing order; GROUP BY and HAVING
SQL · from We deleted Ben’s duplicate payment, and the real one went too · Tests run here
Topics: INSERT, UPDATE and DELETE
SQL · from We deleted Ben’s duplicate payment, and the real one went too · Tests run here
Topics: Data types and constraints
SQL · from We deleted Ben’s duplicate payment, and the real one went too · Tests run here
Topics: INSERT, UPDATE and DELETE; Tables, rows and keys
SQL · from A guest checked out, and nobody got a reminder · Tests run here
Topics: NULL and three-valued logic
SQL · from A guest checked out, and nobody got a reminder · Tests run here
Topics: NULL and three-valued logic
SQL · from A guest checked out, and nobody got a reminder · Tests run here
Topics: NULL and three-valued logic; GROUP BY and HAVING
SQL · from Order 109 disappeared from the warehouse’s list · Tests run here
Topics: SELECT, WHERE, ORDER BY and LIMIT
SQL · from Order 109 disappeared from the warehouse’s list · Tests run here
Topics: SELECT, WHERE, ORDER BY and LIMIT
SQL · from Order 109 disappeared from the warehouse’s list · Tests run here
Topics: SELECT, WHERE, ORDER BY and LIMIT
SQL · from Grace cancelled, and we still asked if she’d ordered twice · Tests run here
Topics: Joins: inner, left, right, full, self and cross
SQL · from Grace cancelled, and we still asked if she’d ordered twice · Tests run here
Topics: Joins: inner, left, right, full, self and cross
SQL · from Grace cancelled, and we still asked if she’d ordered twice · Tests run here
Topics: Joins: inner, left, right, full, self and cross; GROUP BY and HAVING
SQL · from Elif bought two backpacks and got the bottle offer twice · Tests run here
Topics: Simple subqueries
SQL · from Elif bought two backpacks and got the bottle offer twice · Tests run here
Topics: Simple subqueries; GROUP BY and HAVING
SQL · from Elif bought two backpacks and got the bottle offer twice · Tests run here
Topics: Simple subqueries; GROUP BY and HAVING
SQL · from My report shows reviews of a product we don’t sell · Tests run here
Topics: Tables, rows and keys
SQL · from My report shows reviews of a product we don’t sell · Tests run here
Topics: Tables, rows and keys
SQL · from My report shows reviews of a product we don’t sell · Tests run here
Topics: Tables, rows and keys
DSA · from I reversed the list, but the caller’s list didn’t change · Tests run here
Topics: Arrays and strings
DSA · from I reversed the list, but the caller’s list didn’t change · Two pointers · Tests run here
Topics: Arrays and strings; Two pointers
DSA · from I reversed the list, but the caller’s list didn’t change · Tests run here
Topics: Arrays and strings
DSA · from My sort is right, but 50,000 scores take half a minute · Sorting · Tests run here
Topics: Basic sorting
DSA · from My sort is right, but 50,000 scores take half a minute · Two pointers · Tests run here
Topics: Basic sorting; Two pointers; Hashing and hash maps
DSA · from My sort is right, but 50,000 scores take half a minute · Sorting · Tests run here
Topics: Basic sorting
DSA · from My code passed every test, then timed out on the big one · Tests run here
Topics: Big-O for time and space; Hashing and hash maps
DSA · from My code passed every test, then timed out on the big one · Tests run here
Topics: Big-O for time and space
DSA · from My code passed every test, then timed out on the big one · Tests run here
Topics: Big-O for time and space; Arrays and strings
DSA · from My binary search says 0 isn’t in [4, 5, 6, 7, 0, 1, 2] · Binary search · Tests run here
Topics: Binary search on an index and on the answer
DSA · from My binary search says 0 isn’t in [4, 5, 6, 7, 0, 1, 2] · Binary search · Tests run here
Topics: Binary search on an index and on the answer
DSA · from My binary search says 0 isn’t in [4, 5, 6, 7, 0, 1, 2] · Binary search · Tests run here
Topics: Binary search on an index and on the answer
DSA · from My anagram check says aab and abb match · Hash map · Tests run here
Topics: Hashing and hash maps
DSA · from My anagram check says aab and abb match · Hash map · Tests run here
Topics: Hashing and hash maps
DSA · from My anagram check says aab and abb match · Hash map · Tests run here
Topics: Hashing and hash maps; Basic sorting
DSA · from My rate limiter let 200 requests through in one second · Queue · Tests run here
Topics: Stacks and queues
DSA · from My rate limiter let 200 requests through in one second · Queue · Tests run here
Topics: Stacks and queues; Designing data structures: LRU and LFU caches, min stack, randomized set
DSA · from My rate limiter let 200 requests through in one second · Queue · Tests run here
Topics: Stacks and queues; Hashing and hash maps
DSA · from My power function crashes when n is 5,000 · Recursion · Tests run here
Topics: Recursion
DSA · from My power function crashes when n is 5,000 · Recursion · Tests run here
Topics: Recursion; Stacks and queues
DSA · from My power function crashes when n is 5,000 · Recursion · Tests run here
Topics: Recursion
DSA · from My no-repeat finder says 2, but “vdf” has 3 · Sliding window · Tests run here
Topics: Sliding window
DSA · from My no-repeat finder says 2, but “vdf” has 3 · Sliding window · Tests run here
Topics: Sliding window
DSA · from My no-repeat finder says 2, but “vdf” has 3 · Sliding window · Tests run here
Topics: Sliding window; Hashing and hash maps
DSA · from My bracket check says ([)] is fine · Stack · Tests run here
Topics: Stacks and queues; Two pointers
DSA · from My bracket check says ([)] is fine · Monotonic stack · Tests run here
Topics: Stacks and queues; Monotonic stack and queue
DSA · from My bracket check says ([)] is fine · Stack · Tests run here
Topics: Stacks and queues
DSA · from My tank finder says 40, but two walls hold 49 · Two pointers · Tests run here
Topics: Two pointers; Arrays and strings
DSA · from My tank finder says 40, but two walls hold 49 · Two pointers · Tests run here
Topics: Two pointers; Basic sorting
DSA · from My tank finder says 40, but two walls hold 49 · Two pointers · Tests run here
Topics: Two pointers
DSA · from Two Sum · Two pointers · Tests run here
Topics: Two pointers
DSA · from Two Sum · Hash map · Tests run here
Topics: Hashing and hash maps
DSA · from Two Sum · Two pointers · Tests run here
Topics: Two pointers; Basic sorting
DSA · from Two Sum · Two pointers · Tests run here
Topics: Two pointers; Basic sorting
System Design · from The phone app makes five calls to draw one screen · Think it through, then compare answers
Topics: REST vs GraphQL vs gRPC
System Design · from The phone app makes five calls to draw one screen · Think it through, then compare answers
Topics: REST vs GraphQL vs gRPC
System Design · from The phone app makes five calls to draw one screen · Think it through, then compare answers
Topics: REST vs GraphQL vs gRPC
System Design · from I added a cache, and now the shop shows the old price · Think it through, then compare answers
Topics: Caching: cache-aside, write-through, write-back, eviction, TTL
System Design · from I added a cache, and now the shop shows the old price · Think it through, then compare answers
Topics: Caching: cache-aside, write-through, write-back, eviction, TTL; CDNs
System Design · from I added a cache, and now the shop shows the old price · Think it through, then compare answers
Topics: Caching: cache-aside, write-through, write-back, eviction, TTL
System Design · from Users in Sydney wait three seconds for images from Virginia · Think it through, then compare answers
Topics: CDNs
System Design · from Users in Sydney wait three seconds for images from Virginia · Think it through, then compare answers
Topics: CDNs; Object storage
System Design · from Users in Sydney wait three seconds for images from Virginia · Think it through, then compare answers
Topics: CDNs
System Design · from My page takes two seconds, and I can’t say where the time goes · Think it through, then compare answers
Topics: Client–server, HTTP and HTTPS
System Design · from My page takes two seconds, and I can’t say where the time goes · Think it through, then compare answers
Topics: Client–server, HTTP and HTTPS; Latency numbers worth knowing
System Design · from My page takes two seconds, and I can’t say where the time goes · Think it through, then compare answers
Topics: Client–server, HTTP and HTTPS
System Design · from I moved my site, but some users still reach the old server · Think it through, then compare answers
Topics: DNS
System Design · from I moved my site, but some users still reach the old server · Think it through, then compare answers
Topics: DNS; Load balancers: L4 vs L7 and algorithms
System Design · from I moved my site, but some users still reach the old server · Think it through, then compare answers
Topics: DNS
System Design · from The interviewer asks how much storage a photo app needs, and I freeze · Think it through, then compare answers
Topics: Back-of-the-envelope estimates
System Design · from The interviewer asks how much storage a photo app needs, and I freeze · Think it through, then compare answers
Topics: Back-of-the-envelope estimates
System Design · from The interviewer asks how much storage a photo app needs, and I freeze · Think it through, then compare answers
Topics: Back-of-the-envelope estimates
System Design · from My page makes 50 database calls and takes four seconds · Think it through, then compare answers
Topics: Latency numbers worth knowing
System Design · from My page makes 50 database calls and takes four seconds · Think it through, then compare answers
Topics: Latency numbers worth knowing
System Design · from My page makes 50 database calls and takes four seconds · Think it through, then compare answers
Topics: Latency numbers worth knowing
System Design · from One server is at 95% while the other two sit idle · Think it through, then compare answers
Topics: Load balancers: L4 vs L7 and algorithms
System Design · from One server is at 95% while the other two sit idle · Think it through, then compare answers
Topics: Load balancers: L4 vs L7 and algorithms
System Design · from One server is at 95% while the other two sit idle · Think it through, then compare answers
Topics: Load balancers: L4 vs L7 and algorithms; Partitioning and consistent hashing
System Design · from On sale day, our one server hit 100% and the shop went down · Think it through, then compare answers
Topics: Vertical vs horizontal scaling
System Design · from On sale day, our one server hit 100% and the shop went down · Think it through, then compare answers
Topics: Vertical vs horizontal scaling; Object storage
System Design · from On sale day, our one server hit 100% and the shop went down · Think it through, then compare answers
Topics: Vertical vs horizontal scaling; Replication
System Design · from Our orders are fine, but the activity feed has two billion rows · Think it through, then compare answers
Topics: SQL vs NoSQL
System Design · from Our orders are fine, but the activity feed has two billion rows · Think it through, then compare answers
Topics: SQL vs NoSQL
System Design · from Our orders are fine, but the activity feed has two billion rows · Think it through, then compare answers
Topics: SQL vs NoSQL; Partitioning and consistent hashing
System Design · from Design a URL shortener · Think it through, then compare answers
Topics: Case studies: URL shortener, rate limiter, chat, news feed, video, ride-hailing, payments and more; Object storage
System Design · from Design a URL shortener · Think it through, then compare answers
Topics: Queues and pub/sub; Batch vs stream processing
System Design · from Design a URL shortener · Think it through, then compare answers
Topics: Rate-limiting algorithms
System Design · from Design a URL shortener · Think it through, then compare answers
Topics: Multi-region and disaster recovery; Unique ID generation
Frameworks · from The browser blocked my front end from calling my own API · Tests run here
Topics: CORS and CSRF
Frameworks · from The browser blocked my front end from calling my own API · Tests run here
Topics: CORS and CSRF
Frameworks · from The browser blocked my front end from calling my own API · Tests run here
Topics: CORS and CSRF
Frameworks · from The note form showed one mistake at a time, and saved spaces as a title · Tests run here
Topics: Django: apps, MTV, views, the ORM, migrations, admin, forms, middleware, auth
Frameworks · from The note form showed one mistake at a time, and saved spaces as a title · Tests run here
Topics: Django: apps, MTV, views, the ORM, migrations, admin, forms, middleware, auth
Frameworks · from The note form showed one mistake at a time, and saved spaces as a title · Tests run here
Topics: Django: apps, MTV, views, the ORM, migrations, admin, forms, middleware, auth
Frameworks · from The order list page is slow · N+1 queries · Think it through, then compare answers
Topics: Django ORM performance: N+1, select_related, prefetch_related
Frameworks · from The order list page is slow · N+1 queries · Think it through, then compare answers
Topics: Django ORM performance: N+1, select_related, prefetch_related
Frameworks · from The order list page is slow · N+1 queries · Think it through, then compare answers
Topics: Django ORM performance: N+1, select_related, prefetch_related
Frameworks · from The order list page is slow · N+1 queries · Think it through, then compare answers
Topics: Django ORM performance: N+1, select_related, prefetch_related; Django REST Framework: serializers, viewsets, permissions, throttling, pagination
Frameworks · from A user made someone else the owner of a note by adding one field to the JSON · Tests run here
Topics: Django REST Framework: serializers, viewsets, permissions, throttling, pagination
Frameworks · from A user made someone else the owner of a note by adding one field to the JSON · Tests run here
Topics: Django REST Framework: serializers, viewsets, permissions, throttling, pagination
Frameworks · from A user made someone else the owner of a note by adding one field to the JSON · Tests run here
Topics: Django REST Framework: serializers, viewsets, permissions, throttling, pagination
Frameworks · from Every request opened two database sessions, and closed none · Tests run here
Topics: FastAPI: parameters, Pydantic v2, response models, dependency injection, routers
Frameworks · from Every request opened two database sessions, and closed none · Tests run here
Topics: FastAPI: parameters, Pydantic v2, response models, dependency injection, routers
Frameworks · from Every request opened two database sessions, and closed none · Tests run here
Topics: FastAPI: parameters, Pydantic v2, response models, dependency injection, routers
Frameworks · from My Flask tests pass one at a time, and fail together · Tests run here
Topics: Flask: routing, contexts, blueprints, app factory, config, Jinja2, SQLAlchemy, testing
Frameworks · from My Flask tests pass one at a time, and fail together · Tests run here
Topics: Flask: routing, contexts, blueprints, app factory, config, Jinja2, SQLAlchemy, testing
Frameworks · from My Flask tests pass one at a time, and fail together · Tests run here
Topics: Flask: routing, contexts, blueprints, app factory, config, Jinja2, SQLAlchemy, testing
Frameworks · from My app said “Saved” when nothing was saved · Tests run here
Topics: HTTP methods and status codes
Frameworks · from My app said “Saved” when nothing was saved · Tests run here
Topics: HTTP methods and status codes
Frameworks · from My app said “Saved” when nothing was saved · Tests run here
Topics: HTTP methods and status codes
Frameworks · from The second deploy crashed: table notes already exists · Tests run here
Topics: ORMs and migrations
Frameworks · from The second deploy crashed: table notes already exists · Tests run here
Topics: ORMs and migrations
Frameworks · from The second deploy crashed: table notes already exists · Tests run here
Topics: ORMs and migrations
Frameworks · from Someone typed a quote into our search box and read other users’ notes · Tests run here
Topics: Top OWASP risks: injection, XSS, broken authentication
Frameworks · from Someone typed a quote into our search box and read other users’ notes · Tests run here
Topics: Top OWASP risks: injection, XSS, broken authentication
Frameworks · from Someone typed a quote into our search box and read other users’ notes · Tests run here
Topics: Top OWASP risks: injection, XSS, broken authentication
Frameworks · from Our error pages lost their security headers · Tests run here
Topics: The request lifecycle
Frameworks · from Our error pages lost their security headers · Tests run here
Topics: The request lifecycle
Frameworks · from Our error pages lost their security headers · Tests run here
Topics: The request lifecycle
Frameworks · from The same note showed up twice as I scrolled · Tests run here
Topics: REST design
Frameworks · from The same note showed up twice as I scrolled · Tests run here
Topics: REST design
Frameworks · from The same note showed up twice as I scrolled · Tests run here
Topics: REST design
Frameworks · from Users are logged out at random behind the load balancer · Tests run here
Topics: Sessions, JWT and OAuth2
Frameworks · from Users are logged out at random behind the load balancer · Tests run here
Topics: Sessions, JWT and OAuth2
Frameworks · from Users are logged out at random behind the load balancer · Tests run here
Topics: Sessions, JWT and OAuth2
Frameworks · from 200 open chats froze my Flask server · Tests run here
Topics: WSGI vs ASGI
Frameworks · from 200 open chats froze my Flask server · Tests run here
Topics: WSGI vs ASGI
Frameworks · from 200 open chats froze my Flask server · Tests run here
Topics: WSGI vs ASGI
AI Engineering · from The chatbot doesn’t know your docs · RAG · Think it through, then compare answers
Topics: RAG basics: why, chunking, embedding, top-k
AI Engineering · from The chatbot doesn’t know your docs · RAG · Think it through, then compare answers
Topics: Advanced RAG: hybrid search, reranking, query rewriting, metadata filters, GraphRAG, agentic RAG; Vector databases and ANN indexes: HNSW, IVF, PQ
AI Engineering · from The chatbot doesn’t know your docs · RAG · Think it through, then compare answers
Topics: Why models hallucinate; RAG basics: why, chunking, embedding, top-k
AI Engineering · from The chatbot doesn’t know your docs · RAG · Think it through, then compare answers
Topics: Advanced RAG: hybrid search, reranking, query rewriting, metadata filters, GraphRAG, agentic RAG; Safety: prompt injection, jailbreaks, data leakage and PII
Scenarios · from p95 latency tripled after a deploy · Think it through, then compare answers
Topics: The error rate jumped
Scenarios · from p95 latency tripled after a deploy · Think it through, then compare answers
Topics: Production: memory leak, DB CPU at 100%, deadlocks, disk full, intermittent 502s; A 40-second report, duplicate rows, dashboards that disagree
Scenarios · from p95 latency tripled after a deploy · Think it through, then compare answers
Topics: Production: memory leak, DB CPU at 100%, deadlocks, disk full, intermittent 502s
Scenarios · from p95 latency tripled after a deploy · Think it through, then compare answers
Topics: Cache stampede and queue backlog
Interview Playbook · from The coding round, step by step · Think it through, then compare answers
Topics: The coding-round method: clarify, examples, brute force, optimize, code, test, analyze
Interview Playbook · from The coding round, step by step · Think it through, then compare answers
Topics: The coding-round method: clarify, examples, brute force, optimize, code, test, analyze
Interview Playbook · from The coding round, step by step · Think it through, then compare answers
Topics: The coding-round method: clarify, examples, brute force, optimize, code, test, analyze
Interview Playbook · from The coding round, step by step · Think it through, then compare answers
Topics: The coding-round method: clarify, examples, brute force, optimize, code, test, analyze