Hard Backend Developer questions
483 questions · 20 points each for a correct first answer.
- 1.Safe retries for paymentsidempotency, api-design, paymentshard
- 2.CAP during a network partitiondistributed-systems, system-designhard
- 3.Lost update on a wallet balancetransactions, concurrency, sqlhard
- 4.Cache stampede on a hot keycaching, performance, system-designhard
- 5.Saving to DB and publishing an eventevent-driven-architecture, microservices, transactionshard
- 6.One slow route freezes Node.jsnodejs, concurrency, performancehard
- 7.Connection pools and autoscalingdatabases, scalability, performancehard
- 8.Why a lock alone is not enoughdistributed-systems, concurrencyhard
- 9.NOT IN with a NULL in the listsql, debugginghard
- 10.Workers block each other on a jobs tablepostgresql, concurrency, message-queueshard
- 11.Deadlocks between two transfersconcurrency, transactionshard
- 12.Two doctors go off call at oncetransactions, concurrency, postgresqlhard
- 13.Account events processed out of orderkafka, distributed-systemshard
- 14.JWT verified with an attacker-chosen algorithmjwt, securityhard
- 15.Comparing secrets with ===security, cryptographyhard
- 16.Retries stacked at every layerreliability, distributed-systemshard
- 17.Profile shows old data after savingdatabases, consistency, system-designhard
- 18.Adding a fifth cache nodesystem-design, caching, distributed-systemshard
- 19.Sharding orders by creation datesystem-design, databases, scalabilityhard
- 20.Table bloat that VACUUM will not fixpostgresql, performance, debugginghard
- 21.Stale value returns after cache deletecaching, concurrency, redishard
- 22.Work continues after the client gives upreliability, distributed-systems, performancehard
- 23.Trusting a Bloom filter answerdata-structures, performancehard
- 24.Index for the few pending rowsindexing, postgresql, performancehard
- 25.Inserts slow down with UUID keysdatabases, indexing, performancehard
- 26.Burst at a fixed window boundaryrate-limiting, system-designhard
- 27.return versus return await in trynodejs, async-programming, debugginghard
- 28.Sorting by a user-chosen columnsql, securityhard
- 29.Pool exhausted during paymentsdatabases, performance, system-designhard
- 30.Deep merge of untrusted JSONsecurity, nodejshard
- 31.Concurrent requests from throughputperformance, system-designhard
- 32.Adding an index to a live big tablepostgresql, indexing, deploymenthard
- 33.Retries at every layerapi-design, resilience, retrieshard
- 34.Why add a circuit breakerapi-design, resiliencehard
- 35.Connection resets when pods stopapi-design, nodejs, deploymenthard
- 36.A CSV export runs out of memoryapi-design, nodejs, streamshard
- 37.File descriptors leak during downloadsapi-design, nodejs, streamshard
- 38.Users uploading 2 GB videosapi-design, file-uploads, architecturehard
- 39.One bad row in a bulk importapi-design, bulk-operations, error-handlinghard
- 40.How to send money amounts in JSONapi-design, data-modelling, moneyhard
- 41.Caching GraphQL responses at a CDNapi-design, graphql, http-cachinghard
- 42.Retiring an old API versionapi-design, versioning, http-headershard
- 43.Rate limiter blocks everyone togetherapi-design, express, rate-limitinghard
- 44.A forgotten await crashes the serverapi-design, nodejs, error-handlinghard
- 45.Every page load counts 80 million rowsapi-design, pagination, performancehard
- 46.A database blip restarts every podapi-design, deployment, resiliencehard
- 47.Search filters too long for a URLapi-design, rest, url-designhard
- 48.A PUT wipes the phone numberapi-design, http-methods, resthard
- 49.Why rain water two pointers move the lower sidearrays, two-pointershard
- 50.Kadane returns 0 for all negativesarrays, kadane, debugginghard
- 51.Avoiding duplicate triplets in 3Sumarrays, two-pointershard
- 52.Next lexicographic permutationarrays, in-placehard
- 53.Find the duplicate without extra spacearrays, two-pointershard
- 54.Product of array except selfarrays, prefix-sumshard
- 55.Smallest missing positive integerarrays, in-placehard
- 56.Median of two sorted arraysarrays, binary-searchhard
- 57.Quickselect for the k-th largestarrays, algorithmshard
- 58.Reversing a string that has emojiarrays, strings, unicodehard
- 59.Boyer–Moore without a guaranteed majorityarrays, algorithmshard
- 60.Maximum product subarrayarrays, kadanehard
- 61.Sorting a file larger than memoryarrays, sorting, system-designhard
- 62.Removing items while looping forwardarrays, debugging, javascripthard
- 63.Dutch flag: when mid must not advancearrays, two-pointers, sortinghard
- 64.Shortest subarray with sum at least K, with negativesarrays, prefix-sums, dequehard
- 65.Sliding window medianarrays, sliding-window, heapshard
- 66.Substrings containing a, b and carrays, sliding-window, stringshard
- 67.Maximum sum of a circular subarrayarrays, kadanehard
- 68.Maximum sum rectangle in a matrixarrays, kadane, matrixhard
- 69.Running time of minimum window substringarrays, sliding-window, time-complexityhard
- 70.The non-shrinking window trickarrays, sliding-windowhard
- 71.Sum of all subarray sumsarrays, prefix-sums, combinatoricshard
- 72.Running totals of rupee amountsarrays, prefix-sums, floating-pointhard
- 73.Range updates mixed with range queriesarrays, prefix-sums, data-structureshard
- 74.Rate limiting with a time windowarrays, sliding-window, system-designhard
- 75.Subarrays with exactly two distinct valuesarrays, sliding-windowhard
- 76.Why the max deque stores indexesarrays, sliding-window, dequehard
- 77.Bug in a minimum length windowarrays, sliding-window, debugginghard
- 78.Fewest swaps to group all onesarrays, sliding-windowhard
- 79.Minimum eating speed by binary searcharrays, binary-searchhard
- 80.Least ship capacity for a deadlinearrays, binary-search, greedyhard
- 81.Binary search that never endsarrays, binary-search, debugginghard
- 82.Common free time across many calendarsarrays, intervals, heapshard
- 83.Most meetings in one roomarrays, intervals, greedyhard
- 84.Search a matrix sorted by rows and columnsarrays, matrix, binary-searchhard
- 85.KMP failure tablearrays, strings, string-matchinghard
- 86.Rabin–Karp and hash collisionsarrays, strings, string-matchinghard
- 87.Longest palindromic substringarrays, strings, two-pointershard
- 88.Parsing a date-only stringarrays, parsing, dateshard
- 89.Two identical-looking names that differarrays, strings, unicodehard
- 90.Sorting file names with numbersarrays, strings, sortinghard
- 91.Counting inversionsarrays, sorting, divide-and-conquerhard
- 92.Largest number from concatenationarrays, sorting, stringshard
- 93.Fewest arrows for overlapping balloonsarrays, intervals, greedyhard
- 94.Largest rectangle in a histogramarrays, monotonic-stackhard
- 95.Sum of all subarray minimumsarrays, monotonic-stackhard
- 96.Remove k digits for the smallest numberarrays, monotonic-stack, greedyhard
- 97.Asteroid collisionarrays, stackhard
- 98.Sorting by two keys with a stable sortarrays, sortinghard
- 99.Two long passwords both workauthentication, password-hashinghard
- 100.Upgrading old password hashesauthentication, password-hashing, migrationhard
- 101.Login timing reveals real accountsauthentication, user-enumeration, timing-attackshard
- 102.Locking accounts after 5 failuresauthentication, brute-force, rate-limitinghard
- 103.Logins from leaked password listsauthentication, brute-force, mfahard
- 104.Guessing an OTP with no attempt limitauthentication, otp, brute-forcehard
- 105.Magic login links already usedauthentication, passwordlesshard
- 106.Merging accounts by email from a login providerauthentication, oauth, account-takeoverhard
- 107.One company sees another's invoicesauthentication, access-control, multi-tenancyhard
- 108.Removed admin can still delete usersauthentication, access-control, cachinghard
- 109.Revoking a stolen JWT earlyauthentication, jwt, revocationhard
- 110.How PKCE's code challenge is madeauthentication, oauth, pkcehard
- 111.Another app catches the OAuth redirectauthentication, oauth, mobile-authhard
- 112.Why passkeys stop phishingauthentication, passkeys, mfahard
- 113.A huge SMS bill from the OTP endpointauthentication, otp, fraud-preventionhard
- 114.Two usernames that look identicalauthentication, accounts, unicodehard
- 115.A 1 MB password slows the serverauthentication, password-hashing, doshard
- 116.Making stolen access tokens uselessauthentication, tokens, oauthhard
- 117.Keeping OAuth tokens out of the browserauthentication, oauth, architecturehard
- 118.Permissions for shared documentsauthentication, access-controlhard
- 119.An authorization code used twiceauthentication, oauthhard
- 120.Hundreds of roles that nobody understandsauthentication, access-controlhard
- 121.Slow guessing from thousands of IPsauthentication, brute-force, rate-limitinghard
- 122.A user subdomain overrides your cookieauthentication, cookies, sessionshard
- 123.An approve button inside a hidden frameauthentication, clickjacking, oauthhard
- 124.One token accepted by every serviceauthentication, tokens, service-authhard
- 125.Reset tokens in a leaked databaseauthentication, password-resethard
- 126.Logged in to the attacker's accountauthentication, csrfhard
- 127.A reset link used twice at onceauthentication, race-conditions, password-resethard
- 128.A transaction spread across connectionsdatabases, transactions, connection-poolinghard
- 129.Features that break behind PgBouncerdatabases, connection-pooling, postgresqlhard
- 130.Errors under Serializable isolationdatabases, transactions, isolationhard
- 131.Deadlocks in money transfersdatabases, locking, transactionshard
- 132.Both doctors go off calldatabases, isolation, concurrencyhard
- 133.Tables grow though rows are deleteddatabases, postgresql, mvcchard
- 134.Adding an index without blocking writesdatabases, indexes, migrationshard
- 135.Which new column rewrites the tabledatabases, migrations, postgresqlhard
- 136.Backfilling a new column on a big tabledatabases, migrationshard
- 137.Migrations run on every pod startdatabases, migrations, deploymenthard
- 138.Order saved but event never sentdatabases, transactions, messaginghard
- 139.A queue message applied twicedatabases, idempotency, messaginghard
- 140.One counter row slows every saledatabases, concurrency, performancehard
- 141.Two admins edit the same productdatabases, concurrency, ormhard
- 142.A bad query takes the database downdatabases, postgresql, performancehard
- 143.Two workers both think they hold the lockdatabases, distributed-locks, concurrencyhard
- 144.CROSSSLOT errors after moving to Clusterdatabases, redis, scalinghard
- 145.Eviction policy set, but writes still faildatabases, redis, cachinghard
- 146.Jobs lost when workers crashdatabases, redis, queueshard
- 147.Transactions fail on a local MongoDBdatabases, mongodb, transactionshard
- 148.One write escapes a MongoDB transactiondatabases, mongodb, transactionshard
- 149.Billions of tiny sensor documentsdatabases, mongodb, schema-designhard
- 150.Some orders never match a querydatabases, mongodb, schema-designhard
- 151.One Redis key gets half of all trafficdatabases, redis, scalinghard
- 152.How much data AOF everysec can losedatabases, redis, persistencehard
- 153.Keeping wallet balances only in Redisdatabases, redis, architecturehard
- 154.Keeping only the last 50 notificationsdatabases, mongodb, schema-designhard
- 155.All inserts land on one sharddatabases, mongodb, scalinghard
- 156.Two payment retries run at oncedatabases, redis, idempotencyhard
- 157.A Lua script stalls every clientdatabases, redis, performancehard
- 158.Sharding by tenant with one giant tenantdatabases, sharding, scalinghard
- 159.A report across all shardsdatabases, shardinghard
- 160.Search shows deleted productsdatabases, consistency, searchhard
- 161.Deleting old log rows every nightdatabases, postgresql, performancehard
- 162.Two kinds of database timeoutdatabases, connection-pooling, resiliencehard
- 163.The connection dropped during COMMITdatabases, transactions, idempotencyhard
- 164.New code crashes on old cache entriesdatabases, caching, deploymenthard
- 165.A join across two services' databasesdatabases, architecture, microserviceshard
- 166.A query with 20,000 ids in IN (...)databases, postgresql, performancehard
- 167.Emoji in reviews fail to savedatabases, mysql, schema-designhard
- 168.'José' blocked because 'Jose' existsdatabases, mysql, indexeshard
- 169.Stock trading with a fee per tradedynamic-programming, stock-problems, state-machinehard
- 170.Stock DP with at most k tradesdynamic-programming, stock-problemshard
- 171.Memo that never hits in JavaScriptdynamic-programming, memoization, debugginghard
- 172.A memo cache in a long-running serverdynamic-programming, memoization, performancehard
- 173.When top-down beats bottom-updynamic-programming, memoization, tabulationhard
- 174.Splitting 10 for the largest productdynamic-programming, dp-basicshard
- 175.Counting DP mod 1e9+7 in JavaScriptdynamic-programming, counting, javascripthard
- 176.Fibonacci for a huge ndynamic-programming, complexityhard
- 177.Tiling a 2 × 4 board with dominoesdynamic-programming, countinghard
- 178.Taking a value removes its neighboursdynamic-programming, dp-basicshard
- 179.Nesting envelopes inside each otherdynamic-programming, lishard
- 180.When adding a cache does not helpdynamic-programming, memoizationhard
- 181.Is O(n × amount) polynomial?dynamic-programming, complexity, coin-changehard
- 182.How many longest increasing subsequencesdynamic-programming, lis, countinghard
- 183.Painting houses with many colours fastdynamic-programming, dp-basics, space-optimizationhard
- 184.Bitmask DP for a 20-stop delivery routedynamic-programming, bitmask-dphard
- 185.The "tight" flag in digit DPdynamic-programming, digit-dphard
- 186.Two eggs and a 100-floor buildingdynamic-programming, dp-basicshard
- 187.Knapsack with a capacity of a billiondynamic-programming, knapsackhard
- 188.Shortest string containing two stringsdynamic-programming, lcs, stringshard
- 189.Fewest cuts into palindromesdynamic-programming, strings, palindromeshard
- 190.Two players taking from either enddynamic-programming, interval-dp, game-theoryhard
- 191.Why two greedy passes faildynamic-programming, grid-dphard
- 192.Ways two dice add up to 7dynamic-programming, countinghard
- 193.When a recurrence cannot be tabulateddynamic-programming, dp-basicshard
- 194.Matching customer names with typosdynamic-programming, edit-distance, stringshard
- 195.Breaking text into neat linesdynamic-programming, stringshard
- 196.Which items did the knapsack takedynamic-programming, knapsackhard
- 197.Longest increasing path in a matrixdynamic-programming, grid-dp, memoizationhard
- 198.Edit distance on two large filesdynamic-programming, edit-distance, performancehard
- 199.Speeding up a Sudoku solverdynamic-programming, backtrackinghard
- 200.Balanced strings of three bracket pairsdynamic-programming, backtracking, combinatoricshard
- 201.Bug in a grid word searchdynamic-programming, backtracking, debugginghard
- 202.Proving a greedy rule is optimaldynamic-programming, greedyhard
- 203.CPU tasks with a cooldowndynamic-programming, greedyhard
- 204.Fewest rooms for overlapping meetingsdynamic-programming, greedy, intervalshard
- 205.Recursive traversal crashes on big inputgraphs, tree-traversal, recursionhard
- 206.Maximum path sum with negative valuesgraphs, binary-trees, recursionhard
- 207.LCA in a tree without BST ordergraphs, binary-trees, lcahard
- 208.Counting nodes of a complete tree quicklygraphs, binary-treeshard
- 209.Storing duplicate keys in a BSTgraphs, binary-search-treehard
- 210.When preorder and postorder are not enoughgraphs, tree-traversalhard
- 211.Worst-case height of an AVL treegraphs, balanced-treeshard
- 212.Ties in vertical order traversalgraphs, tree-traversalhard
- 213.Building a balanced BST from sorted datagraphs, binary-search-tree, balanced-treeshard
- 214.Answering many LCA queries fastgraphs, lca, treeshard
- 215.Binary lifting memory and query costgraphs, lca, treeshard
- 216.Flattening a tree into a list in placegraphs, binary-treeshard
- 217.Cost of a BST iteratorgraphs, binary-search-tree, tree-traversalhard
- 218.Fixing a BST with two swapped keysgraphs, binary-search-tree, debugginghard
- 219.Evaluating an expression treegraphs, tree-traversalhard
- 220.Grid search where keys open doorsgraphs, bfs, state-spacehard
- 221.Shortest path with k walls you can breakgraphs, bfs, state-spacehard
- 222.Edges to finished nodes in directed DFSgraphs, dfs, cycle-detectionhard
- 223.False cycle alarm in a dependency graphgraphs, dfs, cycle-detectionhard
- 224.Adjacency matrix for 100,000 usersgraphs, graph-representationhard
- 225.BFS over a graph stored in SQLgraphs, bfs, databaseshard
- 226.BFS for a web crawlergraphs, bfshard
- 227.Knight moves across a chessboardgraphs, bfs, state-spacehard
- 228.Why use iterative deepeninggraphs, dfs, bfshard
- 229.Walking every road exactly oncegraphs, graph-basics, euler-pathhard
- 230.Visiting every node versus every edgegraphs, graph-basics, complexityhard
- 231.Is every node reachable from every nodegraphs, dfs, strongly-connectedhard
- 232.Island count with diagonal neighboursgraphs, grid-graphs, connected-componentshard
- 233.Cycle check with duplicate edgesgraphs, dfs, cycle-detectionhard
- 234.Visited set for a 5000 × 5000 gridgraphs, grid-graphs, performancehard
- 235.A graph where Dijkstra goes wronggraphs, shortest-path, dijkstrahard
- 236.Making all weights positive by adding a constantgraphs, shortest-pathhard
- 237.Changing weights without changing the MSTgraphs, minimum-spanning-treehard
- 238.Shortest paths in a DAG with negative edgesgraphs, shortest-path, topological-sorthard
- 239.When Dijkstra can stop earlygraphs, shortest-path, dijkstrahard
- 240.Cheapest trip with one half-price coupongraphs, shortest-path, state-spacehard
- 241.Union-find without either optimisationgraphs, union-findhard
- 242.Connectivity while links are removedgraphs, union-findhard
- 243.Routers slowly counting upgraphs, shortest-path, bellman-fordhard
- 244.Fast routes on a country-sized mapgraphs, shortest-path, system-designhard
- 245.All pairs on a sparse graph with negative edgesgraphs, shortest-pathhard
- 246.Spotting a negative cycle in Floyd-Warshallgraphs, shortest-path, floyd-warshallhard
- 247.Answering division queries with union-findgraphs, union-findhard
- 248.Connecting 1,000 points by Manhattan distancegraphs, minimum-spanning-treehard
- 249.All-pairs table for a large citygraphs, shortest-path, floyd-warshallhard
- 250.Maximum flow in a small networkgraphs, network-flowhard
- 251.Why Edmonds-Karp uses BFSgraphs, network-flow, bfshard
- 252.Assigning engineers to on-call shiftsgraphs, network-flow, bipartitehard
- 253.Topological sort on a 200,000-step chaingraphs, topological-sort, recursionhard
- 254.Checking 2-SAT with strongly connected componentsgraphs, strongly-connectedhard
- 255.Range updates on a segment treegraphs, segment-treehard
- 256.Deleting a word from a triegraphs, trieshard
- 257.Scanning text for thousands of keywordsgraphs, trieshard
- 258.Best root for the shortest treegraphs, trees, bfshard
- 259.Sum of distances from every nodegraphs, trees, dfshard
- 260.Diameter of a tree with two searchesgraphs, trees, bfshard
- 261.Kahn’s algorithm hangs on duplicate edgesgraphs, topological-sort, debugginghard
- 262.How a spreadsheet recalculates cellsgraphs, topological-sort, system-designhard
- 263.Random surfer behind PageRankgraphs, graph-algorithmshard
- 264.Detecting a database deadlockgraphs, cycle-detection, databaseshard
- 265.Hash flooding attackshash-map, security, collisionshard
- 266.Java HashMap worst case since Java 8hash-map, java, internalshard
- 267.Deleting entries while loopinghash-map, javascript, javahard
- 268.Designing an O(1) LRU cachehash-map, lru-cache, system-designhard
- 269.Word counts that break on "constructor"hash-map, javascript, debugginghard
- 270.NaN and -0 as Map keyshash-map, javascripthard
- 271.Floating point numbers as keyshash-map, floating-pointhard
- 272.Is Python dict order guaranteedhash-map, pythonhard
- 273.Adding a cache server without reshufflinghash-map, system-design, distributed-systemshard
- 274.What a Bloom filter can promisehash-map, probabilistic, system-designhard
- 275.Sharing a HashMap across threadshash-map, java, concurrencyhard
- 276.Unique pairs with a given differencehash-map, setshard
- 277.When a sorted array beats a hash maphash-map, trade-offshard
- 278.Key order in a plain objecthash-map, javascripthard
- 279.When a Java HashMap resizeshash-map, java, internalshard
- 280.Prefix count updated too earlyhash-map, prefix-sums, debugginghard
- 281.First or last index of a prefix sumhash-map, prefix-sumshard
- 282.How soon 32-bit hashes collidehash-map, collisions, probabilityhard
- 283.Reducing rolling hash collisionshash-map, strings, collisionshard
- 284.Deleting from an open-addressing tablehash-map, internals, collisionshard
- 285.Clustering in linear probinghash-map, internals, collisionshard
- 286.Counting unique visitors at huge scalehash-map, probabilistic, system-designhard
- 287.Set order changing between runshash-map, pythonhard
- 288.Same request, two cache entrieshash-map, caching, system-designhard
- 289.Cuckoo hashing lookupshash-map, internalshard
- 290.Two Java strings with the same hashCodehash-map, java, collisionshard
- 291.Bug in an at-most-two-distinct windowhash-map, sliding-window, debugginghard
- 292.Detecting a loop in a linked listhash-map, sets, cycle-detectionhard
- 293.Distinct values in every windowhash-map, sliding-window, countinghard
- 294.Stopping double charges on retrieshash-map, system-design, paymentshard
- 295.Python keys 1, 1.0 and Truehash-map, pythonhard
- 296.int[] as a HashMap keyhash-map, javahard
- 297.Adding to a Map during forEachhash-map, javascripthard
- 298.One key overloading a cache shardhash-map, caching, system-designhard
- 299.Avoiding resize pauses in a HashMaphash-map, java, performancehard
- 300.Dataclass objects in a Python sethash-map, pythonhard
- 301.Deduplicating more data than fits in memoryhash-map, big-data, system-designhard
- 302.Perfect hashing for a fixed key sethash-map, internalshard
- 303.Why consistent hashing uses virtual nodeshash-map, system-design, distributed-systemshard
- 304.Error direction of a Count-Min Sketchhash-map, probabilistic, system-designhard
- 305.NaN membership in a Python sethash-map, python, floating-pointhard
- 306.Counting all pairs that sum to a targethash-map, counting, two-sumhard
- 307.Array or map for sparse large IDshash-map, trade-offs, memoryhard
- 308.Making map output stable for testshash-map, testinghard
- 309.Designing an O(1) LFU cachehash-map, design, cachinghard
- 310.What Object.groupBy returnshash-map, javascript, groupinghard
- 311.Deleting from a dict while loopinghash-map, python, debugginghard
- 312.Counting balanced 0 and 1 subarrayshash-map, prefix-sums, countinghard
- 313.A test that depends on HashMap orderhash-map, java, testinghard
- 314.Race in check-then-puthash-map, concurrency, javahard
- 315.Concurrent writes to a Go maphash-map, go, concurrencyhard
- 316.Memo cache misses for equal argumentshash-map, javascript, memoizationhard
- 317.Hash index vs B-tree indexhash-map, databases, trade-offshard
- 318.Rows that match columns in a gridhash-map, matrix, countinghard
- 319.Bias from random byte % 100math, probability, randomhard
- 320.Shuffling with sort and Math.randommath, random, algorithmshard
- 321.Fisher-Yates with one wrong boundmath, random, algorithmshard
- 322.Midpoint overflow in binary searchmath, overflow, algorithmshard
- 323.Inverse of 3 modulo 7math, modular-arithmetic, number-theoryhard
- 324.Computing a large power mod mmath, modular-arithmetic, algorithmshard
- 325.Adding 1 to 2^53math, floating-point, javascripthard
- 326.What Kahan summation fixesmath, floating-point, numerical-methodshard
- 327.A fixed epsilon on large numbersmath, floating-pointhard
- 328.Area of a five-point plotmath, geometryhard
- 329.Left or right turn from a cross productmath, geometryhard
- 330.Do two booking slots overlapmath, geometry, intervalshard
- 331.Distance between two GPS pointsmath, geometry, geospatialhard
- 332.EMI on a one-year loanmath, finance-mathhard
- 333.Splitting ₹100 three waysmath, money, integer-arithmetichard
- 334.Picking one random log line from a streammath, probability, algorithmshard
- 335.Weighted random server choicemath, probability, algorithmshard
- 336.Making a Monte Carlo result 10× more precisemath, probability, simulationhard
- 337.A planet spirals away in a simulationmath, simulation, numerical-methodshard
- 338.A physics loop that never catches upmath, simulation, game-mathhard
- 339.Camera smoothing differs by frame ratemath, game-math, simulationhard
- 340.Rotate then translate a pointmath, matrices, game-mathhard
- 341.Moving a model also moves its normalsmath, matrices, game-mathhard
- 342.Lighting breaks after squashing a modelmath, matrices, game-mathhard
- 343.Upper bound of the fifth retry delaymath, backoff, probabilityhard
- 344.Luhn check digitmath, checksumshard
- 345.How an IBAN is checkedmath, checksums, modular-arithmetichard
- 346.Replacing % with a bit maskmath, bit-manipulation, hashinghard
- 347.Multiplayer games drifting apartmath, simulation, floating-pointhard
- 348.Tax on ₹9 lakh with slabsmath, tax, simulationhard
- 349.Multiplying two Q8.8 numbersmath, embedded-math, fixed-pointhard
- 350.Brightness 200 + 100 goes darkmath, embedded-math, overflowhard
- 351.Gray code of the number 6math, embedded-math, bit-manipulationhard
- 352.The exactly-once claimmessage-queues, delivery-guarantees, idempotencyhard
- 353.Rebalances during slow batchesmessage-queues, kafkahard
- 354.Retrying at the back of the queuemessage-queues, ordering, retrieshard
- 355.Undoing steps in a sagamessage-queues, saga, distributed-transactionshard
- 356.Choreography or orchestrationmessage-queues, saga, workflowshard
- 357.Calculating consumer lagmessage-queues, kafka, monitoringhard
- 358.Consumer offline past retentionmessage-queues, kafkahard
- 359.Duplicates from producer retriesmessage-queues, kafka, idempotencyhard
- 360.Adding partitions to a keyed topicmessage-queues, kafka, orderinghard
- 361.Connection drops during long tasksmessage-queues, rabbitmq, workershard
- 362.Messages vanish from the DLQmessage-queues, sqs, dead-letter-queuehard
- 363.Cost of unbatched SQS callsmessage-queues, sqs, costhard
- 364.One tenant floods the queuemessage-queues, multi-tenancy, fairnesshard
- 365.Publishers suddenly hangmessage-queues, rabbitmq, backpressurehard
- 366.How much data to put in an eventmessage-queues, event-driven, schemahard
- 367.Channel closed after 30 minutesmessage-queues, rabbitmq, workershard
- 368.acks=all with min.insync.replicasmessage-queues, kafka, durabilityhard
- 369.Seeing aborted transactional writesmessage-queues, kafka, delivery-guaranteeshard
- 370.Retries reorder a partitionmessage-queues, kafka, orderinghard
- 371.One hot RabbitMQ queuemessage-queues, rabbitmq, scalinghard
- 372.Rolling out a breaking event changemessage-queues, schema, event-drivenhard
- 373.Low-priority jobs never runmessage-queues, priority, fairnesshard
- 374.Replaying events resends emailsmessage-queues, event-driven, idempotencyhard
- 375.Kafka offsets and database writesmessage-queues, kafka, delivery-guaranteeshard
- 376.Consumer cannot find new datamessage-queues, consistencyhard
- 377.Consumer runs out of memorymessage-queues, backpressure, workershard
- 378.Non-deterministic workflow codemessage-queues, workflowshard
- 379.One big customer on one partitionmessage-queues, kafka, orderinghard
- 380.Backoff without a delay queuemessage-queues, sqs, retrieshard
- 381.Calculating an error budget burn ratereliability, slo, alertinghard
- 382.Surviving the loss of one zonereliability, capacity-planning, redundancyhard
- 383.Hedging slow requestsreliability, latency, tail-latencyhard
- 384.A fixed concurrency limitreliability, overload, concurrencyhard
- 385.The cache becomes criticalreliability, caching, overloadhard
- 386.When the control plane is downreliability, availability, architecturehard
- 387.A config change takes down every regionreliability, deployment, configurationhard
- 388.Idempotency keys that expire too soonreliability, idempotency, retrieshard
- 389.A timeout set at the medianreliability, timeoutshard
- 390.One bad instance trips the breakerreliability, circuit-breaker, load-balancinghard
- 391.Serving requests newest firstreliability, overload, load-sheddinghard
- 392.A payment call timed outreliability, idempotency, paymentshard
- 393.A fallback that makes things worsereliability, graceful-degradationhard
- 394.Accepting orders while the DB is downreliability, graceful-degradation, queueshard
- 395.Health check green during an outagereliability, health-checkshard
- 396.Autoscaling during a dependency outagereliability, autoscaling, overloadhard
- 397.Queries keep running after the client quitsreliability, timeouts, databaseshard
- 398.Errors cached at the edgereliability, caching, cdnhard
- 399.Telemetry backlog on a slow linkreliability, backpressure, embeddedhard
- 400.Automatic failover keeps flippingreliability, failover, availabilityhard
- 401.How introsort avoids quick sort's worst casesorting-and-searchinghard
- 402.C++ sort versus stable_sortsorting-and-searching, cpphard
- 403.Lomuto quick sort on all-equal keyssorting-and-searchinghard
- 404.Best algorithm to sort a linked listsorting-and-searchinghard
- 405.Insertion sort comparisons on reversed inputsorting-and-searchinghard
- 406.Minimum swaps to sort a permutationsorting-and-searchinghard
- 407.Radix sort versus a comparison sortsorting-and-searchinghard
- 408.Sorting software version numberssorting-and-searchinghard
- 409.Timsort on already sorted datasorting-and-searchinghard
- 410.Bug from sorting with an unstable sortsorting-and-searchinghard
- 411.Rows missing across paginated pagessorting-and-searching, sqlhard
- 412.Default sort of a Float64Arraysorting-and-searching, javascripthard
- 413.Largest number formed from an arraysorting-and-searchinghard
- 414.Why selection sort is not stablesorting-and-searchinghard
- 415.Binary search loop that never endssorting-and-searching, javascripthard
- 416.Bit-shift midpoint in JavaScriptsorting-and-searching, javascripthard
- 417.Binary search over real numberssorting-and-searchinghard
- 418.k-th smallest pair distancesorting-and-searchinghard
- 419.k-th smallest in a sorted matrixsorting-and-searchinghard
- 420.Split an array to minimise the largest sumsorting-and-searchinghard
- 421.Rotated array search with duplicatessorting-and-searchinghard
- 422.Duplicate number by counting valuessorting-and-searchinghard
- 423.Half-open binary search boundssorting-and-searchinghard
- 424.Sorted array or hash map for lookupssorting-and-searchinghard
- 425.Place items to maximise the minimum gapsorting-and-searchinghard
- 426.Search in a bitonic arraysorting-and-searchinghard
- 427.How many times a sorted array was rotatedsorting-and-searchinghard
- 428.Why Karatsuba beats school multiplicationsorting-and-searchinghard
- 429.Median of medians pivot selectionsorting-and-searchinghard
- 430.Closest pair of points in O(n log n)sorting-and-searchinghard
- 431.Strassen matrix multiplicationsorting-and-searchinghard
- 432.Insertion sort cutoff in fast sortssorting-and-searchinghard
- 433.Sorting data across many machinessorting-and-searchinghard
- 434.Counting car fleets to a targetstacks-and-queueshard
- 435.Sliding window maximumstacks-and-queueshard
- 436.Decoding a nested repeat stringstacks-and-queueshard
- 437.Deep recursion on a skewed treestacks-and-queueshard
- 438.Trapping rain waterstacks-and-queueshard
- 439.Why doubling keeps push at O(1)stacks-and-queueshard
- 440.Worst single dequeue in a two-stack queuestacks-and-queueshard
- 441.Calculator with brackets and minusstacks-and-queueshard
- 442.Sum of subarray minimumsstacks-and-queueshard
- 443.Shortest subarray with sum at least Kstacks-and-queueshard
- 444.Iterative DFS visits in a different orderstacks-and-queueshard
- 445.Longest valid parentheses substringstacks-and-queueshard
- 446.Detecting a 132 pattern in O(n)stacks-and-queueshard
- 447.Java Stack class or ArrayDequestacks-and-queues, javahard
- 448.Palindrome check on a linked liststacks-and-queueshard
- 449.Finding where two lists intersectstacks-and-queueshard
- 450.Reordering a list from both endsstacks-and-queueshard
- 451.Reversing a linked list in groups of kstacks-and-queueshard
- 452.How a skip list gets fast searchstacks-and-queueshard
- 453.Do circular links leak memory in JavaScript?stacks-and-queues, javascripthard
- 454.Java LinkedList versus ArrayListstacks-and-queues, javahard
- 455.Stale entries in Dijkstra's heapstacks-and-queueshard
- 456.Supporting decrease-key in a binary heapstacks-and-queueshard
- 457.Fibonacci heaps in real systemsstacks-and-queueshard
- 458.When a 4-ary heap beats a binary heapstacks-and-queueshard
- 459.Equal priorities in Python heapqstacks-and-queues, pythonhard
- 460.Cheapest way to join ropesstacks-and-queueshard
- 461.Median of a sliding windowstacks-and-queueshard
- 462.Reliable job queue on Redis listsstacks-and-queues, redishard
- 463.Backpressure in Node.js streamsstacks-and-queues, nodejshard
- 464.Managing millions of timersstacks-and-queueshard
- 465.Work-stealing deques in thread poolsstacks-and-queueshard
- 466.Promise loop that freezes timersstacks-and-queues, javascripthard
- 467.Fan-out for a celebrity accountsystem-design, feeds, hot-spotshard
- 468.The weakness of two-phase commitsystem-design, distributed-transactionshard
- 469.Last-write-wins loses an updatesystem-design, consistency, replicationhard
- 470.Offline edits that must mergesystem-design, consistency, offlinehard
- 471.How many nodes can failsystem-design, consensushard
- 472.Trade-offs without a partitionsystem-design, consistency, cap-theoremhard
- 473.Linearizable is not serializablesystem-design, consistencyhard
- 474.Requests for keys that do not existsystem-design, cachinghard
- 475.Risk of a write-back cachesystem-design, caching, durabilityhard
- 476.Random UUIDs as primary keyssystem-design, databases, id-generationhard
- 477.Memory for a million socketssystem-design, estimation, real-timehard
- 478.Holding seats during checkoutsystem-design, concurrency, bookinghard
- 479.Designing a wallet ledgersystem-design, payments, databaseshard
- 480.Limiting the blast radiussystem-design, architecture, availabilityhard
- 481.Writes in two regions at oncesystem-design, replication, multi-regionhard
- 482.Throttling on one partition keysystem-design, databases, hot-spotshard
- 483.Rebuilding state from many eventssystem-design, event-sourcinghard