Backend Developer question bank
1628 questions. Filter by level and skill, track what you've solved, and see how many people get each one right.
- Status code after creating a resource
- The non-idempotent method
- Stopping SQL injection
- How to store passwords
- Purpose of a database index
- What stateless means in REST
- 401 or 403
- Keeping secrets out of code
- Updating only one field
- Status code for too many requests
- Rows returned by a LEFT JOIN
- What a foreign key enforces
- Atomicity in a money transfer
- Browser blocks a call that curl allows
- What a 504 from Nginx means
- Docker image versus container
- Redis TTL after SET with EX
- Undoing a bad commit on main
- Promise and setTimeout order
- COUNT and AVG with NULLs
- Filtering grouped results
- Naming a test that uses a real DB
- Why structured logs help
- What HttpOnly does on a cookie
- Storing times for global users
- A GET that deletes data
- Embed or reference in MongoDB
- Slow email during signup
- Duplicate emails despite a check
- Python default list surprise
- What EXPLAIN tells you
- Content-Type versus Accept
- What HTTPS leaves visible
- Database user for the app
- Response for a successful DELETE
- A product page removed for good
- Signing up with a taken username
- Calling DELETE on a read-only route
- A client posts XML to a JSON API
- URL for one product
- Telling the client where the new item lives
- Filtering and sorting a list
- fetch treats a 404 as success
- What a HEAD request does
- 4xx or 5xx for bad input
- Route parameter never matches a number
- Response for a queued report job
- Why teams write an OpenAPI spec
- How many URLs a GraphQL API uses
- Asking for only a few fields
- Stack traces in production errors
- Cost of reading arr[i]
- Inserting at the front of an array
- Why push is amortized O(1)
- Changing one character of a string
- Reversing a simple string
- slice vs splice
- Index of the last element
- indexOf and NaN
- When two pointers find a pair sum
- new Array(3) then map
- Building a long string in a loop
- Palindrome check with two pointers
- Value missing from indexOf
- Precondition for binary search
- Cleaning a pasted mobile number
- What a sliding window covers
- Updating a fixed-size window sum
- Range sum from a prefix array
- Compute a range sum
- Best three-day sales window
- Sliding window time complexity
- Shape of a variable-size window loop
- Length of a window
- Fast rectangle sums on a grid
- Many range increments at once
- Seven-day moving average
- How many subarrays exist
- Running wallet balance
- Cost of prefix sum queries
- Sliding window and negative numbers
- First step in merging intervals
- When two intervals overlap
- Safe midpoint in binary search
- parseInt on a CSS value
- Number of an empty form field
- Splitting a line with empty fields
- Where an element goes on transpose
- Letter to array index
- Anagram check by sorting
- Steps to find a value by binary search
- Can one person attend all meetings
- Zero-padding an invoice number
- Spiral order of a 3x3 matrix
- Checking balanced brackets
- Case-insensitive comparison of names
- Checking whether a value is an array
- Comparing an array with its copy
- Using shift as a queue
- join with null values
- Length of an emoji string
- Flattening a nested array
- Authentication versus authorization
- What a password salt is for
- Is HTTP Basic auth encrypted
- Sending an access token to an API
- What the Secure cookie flag does
- Header that goes with a 401
- Login error message wording
- What not to write to logs
- Modern password rules
- Rules for a login OTP
- Weak point of SMS OTP
- Which pair is really two factors
- Permissions for a reporting service
- Safe default for new API routes
- The three parts of a JWT
- Encrypting passwords instead of hashing
- Login form on plain HTTP
- Session id in the URL
- Same email, different capital letters
- What the server stores for a passkey
- Why cookie auth needs CSRF thought
- Log out of all devices
- API keys instead of a shared password
- What a CAPTCHA protects against
- Which OAuth role issues tokens
- What an OAuth scope is
- OAuth flow to avoid in new apps
- Why apps use refresh tokens
- What single sign-on means
- Building SQL from user input
- What atomicity guarantees
- WHERE column = NULL finds nothing
- COUNT(*) versus COUNT(column)
- Column type for prices
- Storing order times for two countries
- Students and courses table design
- What a foreign key does
- Rows come back in a new order
- Search with a leading wildcard
- Deleting a customer with ON DELETE CASCADE
- Missing numbers in order ids
- Where to keep product photos
- Inserts fail at 2.1 billion
- Checking if any rows exist
- What is inside a MongoDB ObjectId
- MongoDB's maximum document size
- Updating a counter in MongoDB
- Fields vanish after an update
- Counting API calls in Redis
- KEYS * freezes production Redis
- Storing a user profile in Redis
- What TTL returns for a key
- Naming Redis keys
- Cache empty after a Redis restart
- Deleting old sessions in MongoDB
- Finding products by tag
- Missed Redis pub/sub messages
- Create the document if it is missing
- A simple job queue in Redis
- What a 92% cache hit ratio means
- Which key an LRU cache evicts
- Why cache entries have a TTL
- Arabic text shown to English users
- What a write-through cache does
- Slow responses after a cache restart
- An address changed in one place only
- RPO versus RTO
- Backups that nobody has restored
- Database busy with report queries
- SQLite says 'database is locked'
- Signs that a problem suits DP
- What memoisation means
- What tabulation means
- Cost of plain recursive Fibonacci
- Fibonacci after adding a cache
- Recursion with no base case
- Ways to climb five stairs
- Hidden memory cost of recursion
- Why merge sort is not DP
- When the greedy coin choice fails
- Built-in memoisation in Python
- Robbing houses that are not neighbours
- The first step in designing a DP
- Fibonacci with two variables
- Cheapest way up the stairs
- Paths across a 3 × 7 grid
- Grid paths with blocked cells
- Cheapest path through a cost grid
- What 0/1 knapsack means
- Unbounded and 0/1 knapsack
- Subsequence and substring
- Longest common subsequence of two strings
- Operations counted by edit distance
- Edit distance from kitten to sitting
- Table size for a two-string DP
- Common substring versus common subsequence
- Cost of the knapsack DP
- Order to fill a right-or-down grid table
- Palindromic substrings in "aaa"
- Can some items add up to exactly S
- The pattern behind backtracking
- Number of subsets of four items
- Orderings of four distinct items
- What makes a greedy algorithm correct
- Booking the most meetings in one room
- What pruning does in a search
- Edges in a tree with n nodes
- Most nodes in a binary tree of height 3
- What inorder traversal of a BST gives
- Preorder output of a small tree
- Traversal for freeing a whole tree
- Data structure for level-order traversal
- BST search time, typical and worst
- Leaves in a full binary tree
- Recursive maximum depth of a tree
- Child positions in an array-based tree
- Inserting sorted keys into a plain BST
- What makes a graph a tree
- Call stack depth of recursive traversal
- Finding the smallest key in a BST
- Complete binary tree meaning
- Space for adjacency list and matrix
- The structure behind BFS
- How DFS remembers where to return
- Fewest hops between two users
- Sum of degrees in an undirected graph
- Edges in a complete graph
- Why traversals track visited nodes
- Running time of BFS with adjacency lists
- Counting connected components
- Neighbours of a cell in a grid
- Storing a sparse road network
- Fast check for one edge
- Storing weights in an adjacency list
- In-degree in a follower graph
- What a DAG is
- The weight rule for Dijkstra
- Data structure inside Dijkstra
- Shortest paths with refunds as negative costs
- Cost of Floyd-Warshall
- What a minimum spanning tree is
- How Kruskal’s algorithm works
- How Prim’s algorithm works
- The two operations of union-find
- What path compression does
- Why union by size helps
- Dijkstra when every edge costs the same
- What relaxing an edge means
- A cycle with negative total cost
- Running time of heap-based Dijkstra
- Counting groups after several unions
- Graphs that have a topological order
- Where Kahn’s algorithm starts
- A structure for search-box suggestions
- Cost of a trie lookup
- Courses that require each other
- How build tools order their steps
- More than one valid order
- Storing children in a trie node
- Why a trie node needs an end marker
- Which way the dependency edge points
- Kahn’s algorithm finishes early
- When a trie beats a hash set
- What a segment tree is for
- What a Fenwick tree stores
- Nodes in a small trie
- Average cost of a hash map lookup
- Worst case for a hash map lookup
- Removing duplicates with a Set
- Number keys in a plain object
- Iteration order of a Map
- When to choose Map over a plain object
- Set of look-alike objects
- Counting letters in a word
- Two Sum with a hash map
- Reading a key that is not in a Map
- What load factor means
- Safe counting in a Python dict
- Checking a key by its value
- Intersecting two lists of IDs
- Counting entries in a Map
- Missing key in a Python Counter
- Adding a value that is already in a Set
- Grouping with defaultdict
- Building a Map from pairs
- Looping over a Map
- Repeated membership checks
- Does a string have all unique characters
- Adding stock to an inventory map
- Does a sentence use every letter
- Counting jewels among stones
- What Map.delete returns
- Equal keys and hash values
- null keys in Java maps
- Avoiding loops in graph search
- What HashMap.put returns
- What in checks on a Python dict
- Creating an empty set in Python
- The in operator on a plain object
- Memory used by a hash map
- Counting with getOrDefault in Java
- Argument order in Map.forEach
- Tallying votes
- Removing duplicates but keeping order
- Choosing a structure for a contact lookup
- Items in exactly one of two sets
- What HashSet.add returns
- Turning a Map into an object for JSON
- Looping over keys and values in Python
- String and number keys in a Map
- Removing a missing item from a Python set
- Set size after a delete
- Type of keys from Object.keys
- Emptying a Map
- What a bucket is in a hash table
- Counting words regardless of case
- Checking a block list
- Inverting a Python dict
- Unique letters in a word
- Stopping a coupon from being reused
- Remainder of a negative number
- Why 0.1 + 0.2 is not 0.3
- Storing rupee amounts safely
- GST inside an inclusive price
- How many buses are needed
- Checking for a power of two
- Which year is a leap year
- Month number in new Date
- Finding the nearest point fast
- Clamping a value into a range
- Math.sin(90) is not 1
- Sum of 1 to 100
- Random whole number in a range
- Percent up, then back down
- Reading binary 1011
- Hex colour to RGB values
- Median of four values
- Checking for NaN
- Dividing by zero in JavaScript
- Interpolating a quarter of the way
- Moving at the same speed on any device
- VAT inside a UAE price
- Compound interest over two years
- Converting Dubai time to India time
- parseInt with a radix
- Sum of 5, 10, ..., 100
- Years to double at 8%
- Average roll of a die
- Binary search steps for 1 million
- Typical salary with one outlier
- Turning an ADC reading into volts
- PWM duty cycle and average voltage
- First byte of 0x12345678 in memory
- Queue versus topic
- Why put a queue between services
- What a RabbitMQ exchange does
- Direct exchange routing
- Topic exchange wildcards
- Fanout exchange behaviour
- SQS standard versus FIFO
- Purpose of a dead-letter queue
- Surviving a broker restart
- SQS long polling
- How long SQS keeps messages
- SNS to SQS fan-out
- At-most-once delivery
- Kafka message keys
- Queue as a shock absorber
- Redis Pub/Sub for jobs
- Delaying an SQS message
- Message TTL on a queue
- When to use a priority queue
- Events versus commands
- Handling incoming webhooks
- Telling users about a long job
- What Kafka does after a read
- A queue just for one client
- What RabbitMQ vhosts are for
- Matching replies to requests
- setTimeout as a job queue
- Only some events for one subscriber
- What MessageGroupId does
- Calls with no timeout
- Which errors to retry
- Recommendations service is down
- RTO and RPO
- MTTR and MTBF
- Backups nobody has restored
- Respecting Retry-After
- The bulkhead pattern
- Turning off a broken feature fast
- Errors right after a deploy
- Why use a canary release
- Heater controller loses its sensor
- An outage caused by a certificate
- Service dies after weeks of uptime
- Connect timeout versus read timeout
- Why postmortems are blameless
- N+1 capacity
- An alert at 3 a.m.
- Which request is safe to retry
- Planned database maintenance
- Bubble sort best case with early exit
- What a stable sort means
- Merge sort time in every case
- Best simple sort for nearly sorted data
- Swaps made by selection sort
- What in-place sorting means
- Quick sort worst-case time
- JavaScript default sort on numbers
- Comparator sign for ascending order
- When counting sort is a good fit
- Python sorted() versus list.sort()
- Lower bound for comparison sorting
- Extra memory used by merge sort
- Is heap sort stable?
- Trace one bubble sort pass
- Best case of binary search
- Time complexity of binary search
- Binary search steps for a million items
- Overflow-safe midpoint formula
- Loop condition for a closed search range
- Trace a binary search
- One search in unsorted data
- What bisect_left returns
- Java Arrays.binarySearch when not found
- What C++ lower_bound returns
- Binary search on a sorted linked list
- Range size after several halvings
- Space used by recursive binary search
- Which duplicate a plain search finds
- The three steps of divide and conquer
- Solving T(n) = 2T(n/2) + n
- Solving T(n) = T(n/2) + 1
- Fast exponentiation by squaring
- Solving T(n) = T(n - 1) + n
- Grouping anagrams with a sorted key
- Order rule of a stack
- Order rule of a queue
- Trace stack push and pop
- Trace queue operations
- Using a JavaScript array as a stack
- Cost of Array.shift in a queue
- Cause of a stack overflow error
- Serving patients by severity
- Data structure behind Undo
- Browser back and forward buttons
- Structure behind breadth-first search
- Depth-first search without recursion
- Python queue: deque or list
- What peek does on a stack
- What stack underflow means
- Reversing a string with a stack
- Building a stack on a linked list
- Inserting at the head of a linked list
- Reading the k-th node of a linked list
- Deleting a known node in a doubly linked list
- How a singly linked list ends
- Reversing a linked list in place
- Why use a dummy head node
- Why arrays often beat linked lists
- Where the smallest value lives in a min-heap
- Heap parent and child indices
- Cost of inserting into a binary heap
- Cost of reading the top of a heap
- Max-heap with Python heapq
- Shape of a binary heap
- Default order of Java PriorityQueue
- Heap memory versus the heap data structure
- What a deque supports
- Checking a palindrome with a deque
- Round-robin scheduling with a queue
- What a dead-letter queue is for
- Keeping only the latest log lines
- When arrivals outpace processing
- What a load balancer does
- Serving images to far-away users
- The cache-aside pattern
- Scaling a read-heavy database
- Latency versus throughput
- Estimating requests per second
- How much downtime 99.99% allows
- Why keep app servers stateless
- How a token bucket limits rate
- What an API gateway handles
- Large file uploads
- Spotting a single point of failure
- DNS failover is slow
- Cost of adding indexes
- Pushing live order status
- Batch or stream processing
- A live game leaderboard
- The N+1 query problem
- Cache-aside pattern
- Logging out with JWTs
- Isolation levels and dirty reads
- Offset or cursor pagination
- Token bucket rate limiter
- At-least-once delivery
- Composite index column order
- More consumers than partitions
- Two awaits that could run together
- A 64-bit id changes after parsing
- Response to a matching If-None-Match
- Optimistic lock update hits 0 rows
- Why access tokens are short-lived
- Webhook signature never matches
- Errors during every deploy
- Liveness probe restarts every pod
- Retrying after a shared outage
- What a circuit breaker does
- Redis structure for a leaderboard
- Index ignored for lower(email)
- Benefit of INCLUDE in an index
- Risk of "import image from URL"
- Any user can read any invoice
- Saving req.body directly
- Testing code that calls a payment API
- Following one request across services
- Fine average, unhappy users
- Docker rebuild reinstalls everything
- One bad message blocks the queue
- Worker crash with auto-ack
- Async callback inside forEach
- Keeping a cached price fresh
- CDN serves one user's profile to another
- 400 versus 422
- Redirecting a POST endpoint
- Which change is safe for old clients
- Deciding when to release v2
- A standard shape for error bodies
- Express error handler never runs
- /users/me returns 'user not found'
- Cannot set headers after they are sent
- Large JSON uploads fail with 413
- Repeated query keys in Express
- A slow partner API hangs your requests
- no-cache or no-store for account data
- Arabic page served to English users
- Telling clients when to retry
- The same payment webhook arrives twice
- Webhooks retried though they worked
- Live order status in a browser
- What GraphQL fixes for mobile clients
- A nested GraphQL query overloads the server
- Linking logs for one checkout
- Paging through a GraphQL list
- Catching breaking changes before deploy
- Trace a two-pointer pair search
- Remove duplicates from a sorted array
- Move zeroes to the end
- Container with most water: which pointer moves
- Time complexity of 3Sum
- Reverse the words in a sentence
- Rotate an array using reversals
- Rotating by more than the length
- Merging into the larger array
- Sort 0s, 1s and 2s in one pass
- Squares of a sorted array
- Is one string a subsequence of another
- Copying an array of order objects
- Building a grid with fill
- Comparing numeric strings
- Compute trapped rain water
- Palindrome check on a real sentence
- Majority element in O(1) space
- Maximum subarray sum
- Best single buy and sell
- Longest substring without repeats
- Shortest subarray reaching a target
- Character replacement window condition
- Longest run of ones with k flips
- Does a string contain an anagram
- Maximum of every window
- Apply two range increments
- Rectangle sum from a 2D prefix table
- Subarrays with product under k
- Find the pivot index
- When to shrink in minimum window substring
- Longest window with two distinct values
- Counting windows with exactly k
- Prefix sums overflowing int
- Moving average over a stream
- Highest average over k values
- XOR of a range
- Minimum starting balance
- Longest run of ones after one deletion
- Remove from both ends to reach x
- Merge a list of intervals
- Do touching intervals merge
- Minimum meeting rooms needed
- Fewest intervals to remove
- Intersect two schedules
- First position of a repeated value
- Binary search in a rotated array
- Minimum of a rotated sorted array
- Parse an integer like atoi
- Rotate a square matrix in place
- Set matrix zeroes with O(1) space
- Splitting CSV with quoted commas
- Evaluate an expression with precedence
- Decode a nested repeat string
- Comparing version strings
- Roman numeral to integer
- Run-length compression of a string
- Longest common prefix
- Binary search a matrix as one array
- Insert a new interval
- Next greater element
- Days until a warmer day
- forEach on an array with holes
- Overflow in an Int32Array
- Reading the last element
- All duplicates with O(1) extra space
- Is one string a rotation of another
- Where to start a circular route
- Raising the bcrypt cost from 10 to 12
- Session id stays the same after login
- What SameSite=Lax allows
- Cookie ignored in an embedded widget
- Cookie leaks to every subdomain
- Idle and absolute session timeouts
- Logout that only clears the cookie
- Credentialed requests with Allow-Origin *
- HS256 or RS256 for many services
- Rotating JWT signing keys safely
- Fresh tokens rejected as expired
- A token for one service works on another
- Reading the role from a token
- Why OAuth uses a state parameter
- Using the ID token to call an API
- OAuth flow for a nightly batch job
- Loose redirect URI matching
- How authenticator app codes work
- Storing MFA backup codes
- Role-based or attribute-based access
- Storing customer API keys
- What a password pepper adds
- Checking breached passwords privately
- Designing a remember-me cookie
- What the __Host- cookie prefix needs
- Data inside a signed cookie
- Sessions after a password change
- Kinds of privilege escalation
- API key passed in the URL
- Stopping replay of signed requests
- Rotating a shared API secret
- Services proving their identity
- Letting users change their email
- Re-checking identity before a transfer
- Logging in on a smart TV
- Where a mobile app keeps tokens
- Checking a Google ID token on the backend
- Hiding salary in a GraphQL API
- What a dirty read is
- The same row read twice gives two values
- PostgreSQL's default isolation level
- MySQL InnoDB's default isolation level
- FOR UPDATE that locks nothing useful
- Several workers taking jobs from a table
- Page view counter loses counts
- Insert or update in one statement
- Two accounts with one email
- Case-insensitive lookup ignores the index
- Phone lookup does a full table scan
- A query answered from the index alone
- Indexing only the pending orders
- Index on a true/false column
- Deleting a customer takes minutes
- Pool runs dry after some errors
- A list page loads huge rows
- One query escapes the transaction
- Importing 100,000 rows slowly
- Rows skipped with created_at cursors
- findOneAndUpdate returns the old value
- Speeding up read-only Mongoose queries
- A new field is never saved
- Ordering fields in a MongoDB index
- A slow aggregation pipeline
- A chat document keeps growing
- Reads from secondaries miss new data
- A confirmed write disappears after failover
- Case-insensitive unique emails in MongoDB
- Logging in with an operator as password
- Heavy $lookup on every page
- Rate limit key that never expires
- Redis cache errors when memory is full
- 500 Redis calls per request
- A Redis transaction does not roll back
- Cached keys stop expiring
- Counting daily unique visitors
- Durable events with Redis
- Releasing a Redis lock safely
- One huge key slows Redis
- Average read time with a 90% hit ratio
- Thousands of keys expiring together
- Requests for ids that do not exist
- Updating or deleting the cache on write
- Different prices on different servers
- Serving slightly old data while refreshing
- Dates break after caching
- A memoised function eats memory
- Clearing all catalogue cache keys at once
- The risk of a write-behind cache
- Copying the author name into posts
- Querying inside a JSONB column
- Searching article text with LIKE
- Committed orders missing after failover
- A dashboard shows yesterday's totals
- Fewest coins for an amount
- Ways to make an amount from coins
- Loop order in coin counting
- Longest increasing subsequence length
- What the O(n log n) LIS array holds
- Largest sum of a contiguous block
- Kadane on all-negative numbers
- Ways to decode a digit string
- Decoding a string that starts with zero
- Splitting text into dictionary words
- Coin change when the amount cannot be made
- Cache key that forgets an argument
- Memoised recursion hits RecursionError
- Houses arranged in a circle
- Largest product of a contiguous block
- Estimating a DP’s running time
- Distinct BSTs from three keys
- Stock trading with a cooldown day
- Fewest perfect squares adding to 12
- Number of calls in plain recursive fib(5)
- Direction of the capacity loop
- Best value in a small knapsack
- Splitting into two equal halves
- Plus and minus signs that reach a target
- Longest palindromic subsequence
- Longest palindromic substring in O(1) space
- Fill order for interval DP
- Cheapest way to multiply three matrices
- The trick in burst balloons
- Edit distance with less memory
- Largest square of 1s in a matrix
- Ways a word appears as a subsequence
- Checking an interleaving of two strings
- Handling "*" in regex matching DP
- Wildcard "*" versus regex "*"
- Knapsack with two limits
- House robber on a tree
- Two-row LCS cannot show the sequence
- Printing an LCS from a full table
- Minimum starting health in a dungeon
- Solutions to the eight queens puzzle
- Subsets when the input has repeats
- Combination sum with reusable numbers
- All results come out empty
- Can you reach the last index
- Where value-per-kg greedy works
- Finding the start of a circular fuel route
- How Huffman coding builds its tree
- Fewest bookings to cancel
- Inorder successor with a right subtree
- Deleting a BST node with two children
- Bug in a parent-child BST check
- Traversals that rebuild a unique tree
- Inorder traversal without recursion
- Where the tree diameter can be
- Lowest common ancestor in a BST
- Distinct BSTs with keys 1, 2, 3
- Inorder traversal in O(1) extra space
- Serialising a tree so it can be rebuilt
- Right side view of a binary tree
- The AVL balance rule
- Height limit of a red-black tree
- Bug in a root-to-leaf path sum
- K-th smallest key in a BST
- Checking if a tree is a mirror of itself
- Checking balance in one pass
- Time cost of a full tree traversal
- Why databases index with B-trees
- Finding any key in a binary heap
- When to mark a node as visited in BFS
- Cycle check in an undirected graph
- Cycle check in a directed graph
- When a graph cannot be two-coloured
- Spreading from many starting points
- Processing BFS one level at a time
- Shortest grid path around a wall
- Deep-copying a graph with cycles
- Faster neighbours in word ladder
- A JavaScript BFS that gets slow
- Recursive flood fill on a huge grid
- Iterative DFS visiting a different order
- Flood fill with the same colour
- Capturing regions not touching the border
- Cells that drain to two oceans
- Edges from undirected adjacency lists
- Checking whether a graph is a tree
- Why bidirectional BFS is faster
- BFS on a combination lock
- Finding second-degree connections
- Shortest distance in a small road graph
- Old entries left in Dijkstra’s heap
- How Bellman-Ford finds a negative cycle
- Cheapest flight with at most k stops
- Total weight of a small MST
- Finding the edge that forms a cycle
- Loop order in Floyd-Warshall
- Shortest paths with 0 and 1 weights
- Rebuilding the route, not just its cost
- Route that avoids the steepest climb
- Time for a signal to reach every server
- When A* is guaranteed optimal
- When the MST is unique
- Dijkstra on a very dense graph
- Speed of fully optimised union-find
- Merging customer records by email
- Island count as land is added
- The heaviest edge on a cycle
- Choosing Prim or Kruskal
- Most reliable path between two servers
- Picking a valid task order
- Topological order from DFS
- Fewest terms to finish all courses
- Letter order from a sorted word list
- Saving memory in a large trie
- Finding many words on a letter grid
- Longest path in a dependency graph
- Counting routes in a small DAG
- Longest common prefix with a trie
- Fast top suggestions per prefix
- Maximum XOR of two numbers
- What a strongly connected component is
- The two passes of Kosaraju
- Finding a link whose loss splits the network
- Routers that are single points of failure
- Array size for a segment tree
- Next index in a Fenwick update
- Alphabetically smallest valid order
- Telling a user which packages loop
- Shrinking each SCC to one node
- Group anagrams together
- Order of steps in Two Sum
- Duplicate within k positions
- Longest consecutive run in O(n)
- Isomorphic strings
- Matching words to a pattern
- Fixed array or map for letter counts
- First non-repeating character
- Top k frequent elements faster than sorting
- Can a note be built from a magazine
- Detecting a loop in repeated digit squares
- Separate chaining vs open addressing
- Cost of resizing a hash table
- What makes a good hash function
- Overriding equals without hashCode
- Changing a key after putting it in a set
- Using a list as a dict key in Python
- Grid coordinates as a JavaScript key
- Caching data per object without leaks
- Intersection keeping duplicates
- Count subarrays that sum to k
- Longest subarray with equal 0s and 1s
- Subarrays with sum divisible by k
- Counting four-list sums to zero
- Bulls and Cows hint
- Core of a URL shortener
- Repeated 10-letter DNA sequences
- Total spend per customer
- Insert, delete and get random in O(1)
- Designing a basic hash set
- Sort characters by frequency
- Most common words in support tickets
- Slope as a map key
- Song pairs with total divisible by 60
- Can an array be split into pairs divisible by k
- Subtracting two Counters
- Memoizing a recursive function
- Two Sum on a stream of numbers
- Joining two lists in memory
- Find the extra letter
- Finding duplicate files
- Which Sudoku box a cell belongs to
- Cloning a graph with cycles
- Copying a list with random pointers
- Longest palindrome from given letters
- Crossing the fewest bricks
- Counting pairs with equal values
- Ranking products by sales
- Printing each message at most once per 10 seconds
- Key-value store with timestamps
- Words that appear in only one sentence
- Common letters with Counter &
- TreeMap or HashMap in Java
- Iteration order of a Go map
- In-memory Map cache across many servers
- Detecting duplicate supplier invoices
- Array or map for counting small integers
- Breaking ties in most frequent
- Key for an undirected edge
- Tie order in Counter.most_common
- Inverting a map with repeated values
- Counting anagram pairs
- Shortest subarray with the same degree
- Longest harmonious subsequence
- Most candy types one sister can get
- Characters common to every word
- Finding the final city of a trip
- Does a walk revisit a point
- Duplicate accounts with different email spelling
- Totals by city and product
- Checking that two Sets are equal
- Built-in Set operations in JavaScript
- Grouping into lists in Java
- LCM of 84 and 36
- Computing LCM without overflow
- Cost of the sieve of Eratosthenes
- Testing whether 97 is prime
- Trailing zeros in 100!
- How many divisors 360 has
- The 100 lockers puzzle
- 2**31 | 0 in JavaScript
- What -1 >>> 0 gives
- Loop count of n &= n - 1
- Finding the one unpaired id
- What n & -n returns
- Why (1.005).toFixed(2) is 1.00
- Math.round(-2.5) in JavaScript
- C-style integer division in JS
- Stacking 20% and 10% discounts
- Average order value across stores
- Two people with the same birthday
- Chance two dice sum to 7
- Spreadsheet column for number 28
- Ways to pick 3 of 10
- Arrangements of the word BANANA
- Binary search trees from 3 keys
- Why fib(50) never finishes
- Rotating a grid 90° clockwise
- Game of Life updates go wrong
- Shortest turn from 350° to 10°
- Angle of the vector (-1, -1)
- Is a rider inside the zone
- Do these two circles collide
- Bouncing a ball off the floor
- Is the player in front of the guard
- Enemy vanishes on reaching player
- Clock hands at 3:15
- Adding one month to 31 January
- Day count off by a fraction
- Reading MCMXCIV
- Reversing digits of a 32-bit int
- Requests in flight with Little's law
- Finding p95 from 20 timings
- Timer check across a counter wrap
- Reading 0xF0 as a signed byte
- One step of a smoothing filter
- How often an 8-bit timer overflows
- Prefetch and uneven work
- Visibility timeout for a Lambda trigger
- Setting maxReceiveCount
- FIFO deduplication window
- Jobs that run longer than expected
- Knowing the broker got it
- Message published to nowhere
- Replicated queues in RabbitMQ 4
- How many workers are needed
- Time to drain a backlog
- Delayed retries in RabbitMQ
- One failure in a Lambda batch
- Committing offsets too early
- A new consumer group starts reading
- Reading SQS queue metrics
- Job runs before the row exists
- Order lost with more workers
- Messages that are too large
- Deploying a worker safely
- Workers and a partner rate limit
- Content-based deduplication
- Per-message delay on FIFO
- Celery tasks lost on a crash
- Nightly job runs three times
- Avoiding duplicate jobs
- Total exponential backoff time
- Choosing a partition count
- Compacted topics
- Needing to reprocess history
- Unacked messages pile up
- Counting dead-letter retries
- Replaying the dead-letter queue
- Changing an event schema safely
- Events from the database log
- Sharing a channel between threads
- All jobs fire at midnight
- FIFO queue throughput
- New field breaks a consumer
- Timeouts that exceed the budget
- Will the retries fit in time
- Circuit breaker trips at night
- Capping retries with a budget
- Availability of two replicas
- Three replicas fail together
- App keeps failing after failover
- Serving stale data during an outage
- Backoff without a ceiling
- Noticing a job that never ran
- Replicas do not protect from bad deletes
- Rollback breaks after a migration
- A dependency is down at startup
- An unhandled promise rejection
- Fail open or fail closed
- Promising more than a dependency
- Pods restart every few hours
- When the error budget runs out
- Requests hang waiting for a connection
- Login broken, dashboards green
- One bad item in a batch call
- Errors that vanish
- Too many alerts, missed outages
- An I2C sensor read fails
- Cutting features under heavy load
- Retrying a 409 Conflict
- Insertion sort shifts on a reversed array
- Trace a Lomuto partition
- Why quick sort uses a random pivot
- Algorithm behind Python and V8 sort
- Is JavaScript Array sort stable?
- Time complexity of LSD radix sort
- Sorting by two keys with stable sorts
- Comparator that returns a boolean
- Comparisons needed to merge two lists
- Merge sort recursion depth for 1024 items
- Keeping quick sort stack depth low
- Heap type used for ascending heap sort
- Main idea behind Shell sort
- Bucket sort for uniform values
- Sorting a file bigger than memory
- Quick sort with many equal keys
- Sort an array of 0s, 1s and 2s
- Why radix sort needs a stable inner sort
- Sorting customer names correctly
- Where NULLs go in PostgreSQL ORDER BY
- Sorting dates stored as DD/MM/YYYY text
- Finding the first occurrence
- Counting a value with two bounds
- Searching a rotated sorted array
- Single value among pairs in a sorted array
- Integer square root by binary search
- Minimum truck capacity in D days
- Condition for binary search on the answer
- Finding a peak with binary search
- Search insert position
- Searching a list of unknown length
- Binary search a fully sorted matrix
- Search a row- and column-sorted matrix
- Steps git bisect needs
- Cost of inserting into a sorted array
- When interpolation search wins
- Ternary search on a unimodal function
- Find k closest values in a sorted array
- First log entry after a timestamp
- lower_bound past the end
- Calls needed to find the first bad version
- upper_bound on duplicate values
- Counting values up to X in a sorted array
- Slowest speed to finish within H hours
- Solving T(n) = 2T(n/2) + 1
- Solving T(n) = 4T(n/2) + n
- Running time of quickselect
- Counting inversions with merge sort
- Maximum subarray by divide and conquer
- Merging k sorted lists in pairs
- Pair sum with sorting and two pointers
- Merging overlapping intervals
- Second largest with quickselect
- Evaluating a postfix expression
- Converting infix to postfix
- Stack with O(1) getMin
- Queue built from two stacks
- Stack built from one queue
- Capacity of a circular queue
- Next write position in a ring buffer
- Next greater element with a stack
- Days until a warmer temperature
- Are interleaved brackets valid?
- Simplifying a Unix path
- Stock span problem
- Asteroid collision simulation
- Removing adjacent duplicates
- Promise callback versus setTimeout order
- Which pop order is impossible?
- Evaluating a prefix expression
- Fewest brackets to add for validity
- Next greater element in a circular array
- Detecting a cycle in a linked list
- Finding where a cycle begins
- Middle node of an even-length list
- Removing the n-th node from the end
- Merging two sorted linked lists
- Data structures behind an LRU cache
- Deleting a node with no access to the head
- Adding numbers stored as linked lists
- Rotating a linked list
- Building a heap from an array
- Top k largest with a small heap
- Merging k sorted lists with a heap
- Running median with two heaps
- Trace an insert into a min-heap
- Trace removing the minimum from a heap
- Task scheduler with a cooldown
- k-th largest value in a live stream
- Finding an arbitrary value in a heap
- Rearranging letters so none repeat
- Last stone weight with a max-heap
- Grouping odd and even positions in a list
- Josephus problem with a queue
- Message order guarantee in Kafka
- Why an SQS message is delivered twice
- Handling at-least-once delivery
- Bounded queue between producers and consumers
- Preventing starvation in a priority queue
- Rate limiter with a queue of timestamps
- Average requests in a system
- Write-through caching trade-off
- Average latency with a cache
- Stale data from a read replica
- Paging through a huge feed
- Estimating storage for uploads
- How many short URLs fit
- IDs across many servers
- Quorum reads and writes
- Load balancing slow requests
- Routing by URL path
- Building a home feed
- What a Bloom filter answers
- Search with LIKE is slow
- A like counter on a viral post
- Where eventual consistency is fine
- Availability of a call chain
- What to autoscale workers on
- Why look at p99 latency
- Microservices for a team of four
- Finding nearby drivers
- IP rate limits block real users
- Synchronous or async replication
- Separate models for reads and writes
- Safe retries for payments
- CAP during a network partition
- Lost update on a wallet balance
- Cache stampede on a hot key
- Saving to DB and publishing an event
- One slow route freezes Node.js
- Connection pools and autoscaling
- Why a lock alone is not enough
- NOT IN with a NULL in the list
- Workers block each other on a jobs table
- Deadlocks between two transfers
- Two doctors go off call at once
- Account events processed out of order
- JWT verified with an attacker-chosen algorithm
- Comparing secrets with ===
- Retries stacked at every layer
- Profile shows old data after saving
- Adding a fifth cache node
- Sharding orders by creation date
- Table bloat that VACUUM will not fix
- Stale value returns after cache delete
- Work continues after the client gives up
- Trusting a Bloom filter answer
- Index for the few pending rows
- Inserts slow down with UUID keys
- Burst at a fixed window boundary
- return versus return await in try
- Sorting by a user-chosen column
- Pool exhausted during payments
- Deep merge of untrusted JSON
- Concurrent requests from throughput
- Adding an index to a live big table
- Retries at every layer
- Why add a circuit breaker
- Connection resets when pods stop
- A CSV export runs out of memory
- File descriptors leak during downloads
- Users uploading 2 GB videos
- One bad row in a bulk import
- How to send money amounts in JSON
- Caching GraphQL responses at a CDN
- Retiring an old API version
- Rate limiter blocks everyone together
- A forgotten await crashes the server
- Every page load counts 80 million rows
- A database blip restarts every pod
- Search filters too long for a URL
- A PUT wipes the phone number
- Why rain water two pointers move the lower side
- Kadane returns 0 for all negatives
- Avoiding duplicate triplets in 3Sum
- Next lexicographic permutation
- Find the duplicate without extra space
- Product of array except self
- Smallest missing positive integer
- Median of two sorted arrays
- Quickselect for the k-th largest
- Reversing a string that has emoji
- Boyer–Moore without a guaranteed majority
- Maximum product subarray
- Sorting a file larger than memory
- Removing items while looping forward
- Dutch flag: when mid must not advance
- Shortest subarray with sum at least K, with negatives
- Sliding window median
- Substrings containing a, b and c
- Maximum sum of a circular subarray
- Maximum sum rectangle in a matrix
- Running time of minimum window substring
- The non-shrinking window trick
- Sum of all subarray sums
- Running totals of rupee amounts
- Range updates mixed with range queries
- Rate limiting with a time window
- Subarrays with exactly two distinct values
- Why the max deque stores indexes
- Bug in a minimum length window
- Fewest swaps to group all ones
- Minimum eating speed by binary search
- Least ship capacity for a deadline
- Binary search that never ends
- Common free time across many calendars
- Most meetings in one room
- Search a matrix sorted by rows and columns
- KMP failure table
- Rabin–Karp and hash collisions
- Longest palindromic substring
- Parsing a date-only string
- Two identical-looking names that differ
- Sorting file names with numbers
- Counting inversions
- Largest number from concatenation
- Fewest arrows for overlapping balloons
- Largest rectangle in a histogram
- Sum of all subarray minimums
- Remove k digits for the smallest number
- Asteroid collision
- Sorting by two keys with a stable sort
- Two long passwords both work
- Upgrading old password hashes
- Login timing reveals real accounts
- Locking accounts after 5 failures
- Logins from leaked password lists
- Guessing an OTP with no attempt limit
- Magic login links already used
- Merging accounts by email from a login provider
- One company sees another's invoices
- Removed admin can still delete users
- Revoking a stolen JWT early
- How PKCE's code challenge is made
- Another app catches the OAuth redirect
- Why passkeys stop phishing
- A huge SMS bill from the OTP endpoint
- Two usernames that look identical
- A 1 MB password slows the server
- Making stolen access tokens useless
- Keeping OAuth tokens out of the browser
- Permissions for shared documents
- An authorization code used twice
- Hundreds of roles that nobody understands
- Slow guessing from thousands of IPs
- A user subdomain overrides your cookie
- An approve button inside a hidden frame
- One token accepted by every service
- Reset tokens in a leaked database
- Logged in to the attacker's account
- A reset link used twice at once
- A transaction spread across connections
- Features that break behind PgBouncer
- Errors under Serializable isolation
- Deadlocks in money transfers
- Both doctors go off call
- Tables grow though rows are deleted
- Adding an index without blocking writes
- Which new column rewrites the table
- Backfilling a new column on a big table
- Migrations run on every pod start
- Order saved but event never sent
- A queue message applied twice
- One counter row slows every sale
- Two admins edit the same product
- A bad query takes the database down
- Two workers both think they hold the lock
- CROSSSLOT errors after moving to Cluster
- Eviction policy set, but writes still fail
- Jobs lost when workers crash
- Transactions fail on a local MongoDB
- One write escapes a MongoDB transaction
- Billions of tiny sensor documents
- Some orders never match a query
- One Redis key gets half of all traffic
- How much data AOF everysec can lose
- Keeping wallet balances only in Redis
- Keeping only the last 50 notifications
- All inserts land on one shard
- Two payment retries run at once
- A Lua script stalls every client
- Sharding by tenant with one giant tenant
- A report across all shards
- Search shows deleted products
- Deleting old log rows every night
- Two kinds of database timeout
- The connection dropped during COMMIT
- New code crashes on old cache entries
- A join across two services' databases
- A query with 20,000 ids in IN (...)
- Emoji in reviews fail to save
- 'José' blocked because 'Jose' exists
- Stock trading with a fee per trade
- Stock DP with at most k trades
- Memo that never hits in JavaScript
- A memo cache in a long-running server
- When top-down beats bottom-up
- Splitting 10 for the largest product
- Counting DP mod 1e9+7 in JavaScript
- Fibonacci for a huge n
- Tiling a 2 × 4 board with dominoes
- Taking a value removes its neighbours
- Nesting envelopes inside each other
- When adding a cache does not help
- Is O(n × amount) polynomial?
- How many longest increasing subsequences
- Painting houses with many colours fast
- Bitmask DP for a 20-stop delivery route
- The "tight" flag in digit DP
- Two eggs and a 100-floor building
- Knapsack with a capacity of a billion
- Shortest string containing two strings
- Fewest cuts into palindromes
- Two players taking from either end
- Why two greedy passes fail
- Ways two dice add up to 7
- When a recurrence cannot be tabulated
- Matching customer names with typos
- Breaking text into neat lines
- Which items did the knapsack take
- Longest increasing path in a matrix
- Edit distance on two large files
- Speeding up a Sudoku solver
- Balanced strings of three bracket pairs
- Bug in a grid word search
- Proving a greedy rule is optimal
- CPU tasks with a cooldown
- Fewest rooms for overlapping meetings
- Recursive traversal crashes on big input
- Maximum path sum with negative values
- LCA in a tree without BST order
- Counting nodes of a complete tree quickly
- Storing duplicate keys in a BST
- When preorder and postorder are not enough
- Worst-case height of an AVL tree
- Ties in vertical order traversal
- Building a balanced BST from sorted data
- Answering many LCA queries fast
- Binary lifting memory and query cost
- Flattening a tree into a list in place
- Cost of a BST iterator
- Fixing a BST with two swapped keys
- Evaluating an expression tree
- Grid search where keys open doors
- Shortest path with k walls you can break
- Edges to finished nodes in directed DFS
- False cycle alarm in a dependency graph
- Adjacency matrix for 100,000 users
- BFS over a graph stored in SQL
- BFS for a web crawler
- Knight moves across a chessboard
- Why use iterative deepening
- Walking every road exactly once
- Visiting every node versus every edge
- Is every node reachable from every node
- Island count with diagonal neighbours
- Cycle check with duplicate edges
- Visited set for a 5000 × 5000 grid
- A graph where Dijkstra goes wrong
- Making all weights positive by adding a constant
- Changing weights without changing the MST
- Shortest paths in a DAG with negative edges
- When Dijkstra can stop early
- Cheapest trip with one half-price coupon
- Union-find without either optimisation
- Connectivity while links are removed
- Routers slowly counting up
- Fast routes on a country-sized map
- All pairs on a sparse graph with negative edges
- Spotting a negative cycle in Floyd-Warshall
- Answering division queries with union-find
- Connecting 1,000 points by Manhattan distance
- All-pairs table for a large city
- Maximum flow in a small network
- Why Edmonds-Karp uses BFS
- Assigning engineers to on-call shifts
- Topological sort on a 200,000-step chain
- Checking 2-SAT with strongly connected components
- Range updates on a segment tree
- Deleting a word from a trie
- Scanning text for thousands of keywords
- Best root for the shortest tree
- Sum of distances from every node
- Diameter of a tree with two searches
- Kahn’s algorithm hangs on duplicate edges
- How a spreadsheet recalculates cells
- Random surfer behind PageRank
- Detecting a database deadlock
- Hash flooding attacks
- Java HashMap worst case since Java 8
- Deleting entries while looping
- Designing an O(1) LRU cache
- Word counts that break on "constructor"
- NaN and -0 as Map keys
- Floating point numbers as keys
- Is Python dict order guaranteed
- Adding a cache server without reshuffling
- What a Bloom filter can promise
- Sharing a HashMap across threads
- Unique pairs with a given difference
- When a sorted array beats a hash map
- Key order in a plain object
- When a Java HashMap resizes
- Prefix count updated too early
- First or last index of a prefix sum
- How soon 32-bit hashes collide
- Reducing rolling hash collisions
- Deleting from an open-addressing table
- Clustering in linear probing
- Counting unique visitors at huge scale
- Set order changing between runs
- Same request, two cache entries
- Cuckoo hashing lookups
- Two Java strings with the same hashCode
- Bug in an at-most-two-distinct window
- Detecting a loop in a linked list
- Distinct values in every window
- Stopping double charges on retries
- Python keys 1, 1.0 and True
- int[] as a HashMap key
- Adding to a Map during forEach
- One key overloading a cache shard
- Avoiding resize pauses in a HashMap
- Dataclass objects in a Python set
- Deduplicating more data than fits in memory
- Perfect hashing for a fixed key set
- Why consistent hashing uses virtual nodes
- Error direction of a Count-Min Sketch
- NaN membership in a Python set
- Counting all pairs that sum to a target
- Array or map for sparse large IDs
- Making map output stable for tests
- Designing an O(1) LFU cache
- What Object.groupBy returns
- Deleting from a dict while looping
- Counting balanced 0 and 1 subarrays
- A test that depends on HashMap order
- Race in check-then-put
- Concurrent writes to a Go map
- Memo cache misses for equal arguments
- Hash index vs B-tree index
- Rows that match columns in a grid
- Bias from random byte % 100
- Shuffling with sort and Math.random
- Fisher-Yates with one wrong bound
- Midpoint overflow in binary search
- Inverse of 3 modulo 7
- Computing a large power mod m
- Adding 1 to 2^53
- What Kahan summation fixes
- A fixed epsilon on large numbers
- Area of a five-point plot
- Left or right turn from a cross product
- Do two booking slots overlap
- Distance between two GPS points
- EMI on a one-year loan
- Splitting ₹100 three ways
- Picking one random log line from a stream
- Weighted random server choice
- Making a Monte Carlo result 10× more precise
- A planet spirals away in a simulation
- A physics loop that never catches up
- Camera smoothing differs by frame rate
- Rotate then translate a point
- Moving a model also moves its normals
- Lighting breaks after squashing a model
- Upper bound of the fifth retry delay
- Luhn check digit
- How an IBAN is checked
- Replacing % with a bit mask
- Multiplayer games drifting apart
- Tax on ₹9 lakh with slabs
- Multiplying two Q8.8 numbers
- Brightness 200 + 100 goes dark
- Gray code of the number 6
- The exactly-once claim
- Rebalances during slow batches
- Retrying at the back of the queue
- Undoing steps in a saga
- Choreography or orchestration
- Calculating consumer lag
- Consumer offline past retention
- Duplicates from producer retries
- Adding partitions to a keyed topic
- Connection drops during long tasks
- Messages vanish from the DLQ
- Cost of unbatched SQS calls
- One tenant floods the queue
- Publishers suddenly hang
- How much data to put in an event
- Channel closed after 30 minutes
- acks=all with min.insync.replicas
- Seeing aborted transactional writes
- Retries reorder a partition
- One hot RabbitMQ queue
- Rolling out a breaking event change
- Low-priority jobs never run
- Replaying events resends emails
- Kafka offsets and database writes
- Consumer cannot find new data
- Consumer runs out of memory
- Non-deterministic workflow code
- One big customer on one partition
- Backoff without a delay queue
- Calculating an error budget burn rate
- Surviving the loss of one zone
- Hedging slow requests
- A fixed concurrency limit
- The cache becomes critical
- When the control plane is down
- A config change takes down every region
- Idempotency keys that expire too soon
- A timeout set at the median
- One bad instance trips the breaker
- Serving requests newest first
- A payment call timed out
- A fallback that makes things worse
- Accepting orders while the DB is down
- Health check green during an outage
- Autoscaling during a dependency outage
- Queries keep running after the client quits
- Errors cached at the edge
- Telemetry backlog on a slow link
- Automatic failover keeps flipping
- How introsort avoids quick sort's worst case
- C++ sort versus stable_sort
- Lomuto quick sort on all-equal keys
- Best algorithm to sort a linked list
- Insertion sort comparisons on reversed input
- Minimum swaps to sort a permutation
- Radix sort versus a comparison sort
- Sorting software version numbers
- Timsort on already sorted data
- Bug from sorting with an unstable sort
- Rows missing across paginated pages
- Default sort of a Float64Array
- Largest number formed from an array
- Why selection sort is not stable
- Binary search loop that never ends
- Bit-shift midpoint in JavaScript
- Binary search over real numbers
- k-th smallest pair distance
- k-th smallest in a sorted matrix
- Split an array to minimise the largest sum
- Rotated array search with duplicates
- Duplicate number by counting values
- Half-open binary search bounds
- Sorted array or hash map for lookups
- Place items to maximise the minimum gap
- Search in a bitonic array
- How many times a sorted array was rotated
- Why Karatsuba beats school multiplication
- Median of medians pivot selection
- Closest pair of points in O(n log n)
- Strassen matrix multiplication
- Insertion sort cutoff in fast sorts
- Sorting data across many machines
- Counting car fleets to a target
- Sliding window maximum
- Decoding a nested repeat string
- Deep recursion on a skewed tree
- Trapping rain water
- Why doubling keeps push at O(1)
- Worst single dequeue in a two-stack queue
- Calculator with brackets and minus
- Sum of subarray minimums
- Shortest subarray with sum at least K
- Iterative DFS visits in a different order
- Longest valid parentheses substring
- Detecting a 132 pattern in O(n)
- Java Stack class or ArrayDeque
- Palindrome check on a linked list
- Finding where two lists intersect
- Reordering a list from both ends
- Reversing a linked list in groups of k
- How a skip list gets fast search
- Do circular links leak memory in JavaScript?
- Java LinkedList versus ArrayList
- Stale entries in Dijkstra's heap
- Supporting decrease-key in a binary heap
- Fibonacci heaps in real systems
- When a 4-ary heap beats a binary heap
- Equal priorities in Python heapq
- Cheapest way to join ropes
- Median of a sliding window
- Reliable job queue on Redis lists
- Backpressure in Node.js streams
- Managing millions of timers
- Work-stealing deques in thread pools
- Promise loop that freezes timers
- Fan-out for a celebrity account
- The weakness of two-phase commit
- Last-write-wins loses an update
- Offline edits that must merge
- How many nodes can fail
- Trade-offs without a partition
- Linearizable is not serializable
- Requests for keys that do not exist
- Risk of a write-back cache
- Random UUIDs as primary keys
- Memory for a million sockets
- Holding seats during checkout
- Designing a wallet ledger
- Limiting the blast radius
- Writes in two regions at once
- Throttling on one partition key
- Rebuilding state from many events