# Problems

Pick a problem, code in the editor, and watch the judge run real test cases. The archive is open to browse

## How it is built

Problems is a browser based coding judge. The list page is server loaded from Postgres through Drizzle, with search, level, topic and judgeable filters, eight curated sets, 100 rows per page and URL state through nuqs, cached in Redis for 5 minutes fresh. A problem opens a full screen workspace: the statement, rendered from markdown with KaTeX in four locales, sits beside a Monaco editor in resizable panels, with tabs on mobile. Seven languages are supported. Run checks the public examples and Submit judges hidden tests, both signed in only. Each is a durable workflow that compiles and runs code in a Cloudflare Container, while the client polls with backoff. One active submission per user is enforced by a partial unique index. A DeepSeek V4.1 Flash coach, called through textModel() with structured output, reviews code after typing pauses, runs and submits, rate limited per user, and points at lines without solving. Cron jobs every 4 hours classify rating and topics and generate verified tests and translations.

Canonical: /mini/problems

**Under construction**

Still being built. Things may change

## Interview warm-up

Short whiteboard warmups

[All problems](/mini/problems)

Total results: 4,882 problems

| Title | Level | Topics | Solved | Time limit | Memory limit | Judge |
| --- | --- | --- | --- | --- | --- | --- |
| [Resistance](/mini/problems/019ef7ef-e758-717f-a0e8-f6c2fd3c5372): Given three color names, map each to its digit or multiplier using a fixed table and print the resulting resistance value. | Easy 1 | Hash map, Implementation | No attempts yet | 2s | 128 MB | Judgeable |
| [Escape from a Rectangle](/mini/problems/019ef7ef-e758-717f-a0e9-1a1dcdb440fb): Given a point inside an axis-aligned rectangle, compute the minimum distance from the point to the nearest side of the rectangle. | Easy 1 | Math, Geometry, Implementation | No attempts yet | 2s | 128 MB | Judgeable |
| [Counting Vowels](/mini/problems/019ef7ef-e759-7539-b5f5-ea006c84f9e1): For each input line until a terminating '#', count how many letters are vowels regardless of case. | Easy 1 | String, Implementation | No attempts yet | 1s | 128 MB | Judgeable |
| [Rugby Club](/mini/problems/019ef7ef-e75a-748c-9efb-f7ddeb28a93c): Read repeated name/age/weight lines until a sentinel and print whether each member is Senior or Junior based on simple thresholds. | Easy 1 | Implementation | No attempts yet | 1s | 128 MB | Judgeable |
| [Cutting Chocolate](/mini/problems/019ef7ef-e75a-748c-9efd-37f048f20f01): Compute the minimum number of straight cuts needed to divide an N by M chocolate bar into all 1x1 pieces. | Easy 1 | Math, Implementation | No attempts yet | 2s | 128 MB | Judgeable |
| [Print Stars - 3](/mini/problems/019ef7ef-e75a-748c-9f01-7623bc9ebd1e): Print N lines of stars where the count decreases from N down to 1. | Easy 1 | Implementation | No attempts yet | 1s | 128 MB | Judgeable |
| [Oven Clock](/mini/problems/019ef7ef-e75a-748c-9f02-c84693399dbe): Given a start time and a number of minutes to cook, compute and print the finishing time on a 24-hour clock. | Easy 1 | Math, Simulation | No attempts yet | 1s | 128 MB | Judgeable |
| [Average and Median](/mini/problems/019ef7ef-e75a-748c-9f03-c3bb8b9577d3): Read five natural numbers and print their average and median. | Easy 1 | Sorting, Array, Math | No attempts yet | 1s | 128 MB | Judgeable |
| [Multiplication](/mini/problems/019ef7ef-e75a-748c-9f03-c657c202e993): Given two three-digit numbers, print the partial products from vertical multiplication and their total. | Easy 1 | Math, Implementation | No attempts yet | 1s | 128 MB | Judgeable |
| [String Repetition](/mini/problems/019ef7ef-e75a-748c-9f05-209fc7a6fdc2): Given repeat count R and string S, output the string formed by repeating each character of S exactly R times in order. | Easy 1 | String, Implementation | No attempts yet | 1s | 128 MB | Judgeable |
| [Least Common Multiple and Greatest Common Divisor](/mini/problems/019ef7ef-e75a-748c-9f05-8e675d067d8a): For multiple integer pairs, compute and print each pair's least common multiple and greatest common divisor. | Easy 1 | Math, Number theory | No attempts yet | 1s | 128 MB | Judgeable |
| [Typo Man Go Changyoung](/mini/problems/019ef7ef-e75a-748c-9f05-b1d036c1d20c): Given a string and a 1-based position, output the string with that one character removed, for multiple test cases. | Easy 1 | String, Implementation | No attempts yet | 1s | 128 MB | Judgeable |
| [Multiplication Table](/mini/problems/019ef7ef-e75a-748c-9f06-2009cfcd1512): Print the multiplication table for a given integer N from N\*1 to N\*9 in the exact required format. | Easy 1 | Implementation | No attempts yet | 1s | 128 MB | Judgeable |
| [Fibonacci Number](/mini/problems/019ef7ef-e75a-748c-9f06-4038fb435b3a): Compute the nth Fibonacci number for n up to 45. | Easy 1 | Math, Implementation | No attempts yet | 1s | 128 MB | Judgeable |
| [Leap Year](/mini/problems/019ef7ef-e75a-748c-9f06-5951bc7c3c4a): Given a year, output 1 if it is a leap year according to the standard divisibility rule, otherwise output 0. | Easy 1 | Math, Implementation | No attempts yet | 1s | 128 MB | Judgeable |
| [After the Party](/mini/problems/019ef7ef-e75a-748c-9f07-bdf2b87f8629): Compute actual attendees as L times P, then output the difference between each of five reported counts and that value. | Easy 1 | Math, Implementation | No attempts yet | 1s | 128 MB | Judgeable |
| [FBI](/mini/problems/019ef7ef-e75a-748c-9f07-eecfde1231fa): Given five agent codes, print the 1-based positions of those containing the substring FBI, or a fixed message if none do. | Easy 1 | String, Implementation | No attempts yet | 0.25s | 128 MB | Judgeable |
| [Alarm Clock](/mini/problems/019ef7ef-e75a-748c-9f08-58d79bf53a6e): Given an alarm time in hours and minutes, compute and print the time 45 minutes earlier, wrapping around midnight if needed. | Easy 1 | Math, Implementation | No attempts yet | 1s | 128 MB | Judgeable |
| [Sangsu](/mini/problems/019ef7ef-e75a-748c-9f08-b8eb9e74b57e): Reverse two given three-digit numbers digit by digit and print the larger reversed value. | Easy 1 | Math, Implementation | No attempts yet | 1s | 128 MB | Judgeable |
| [Completing a Chess Set](/mini/problems/019ef7ef-e75a-748c-9f0a-36bc45db4cb7): Given counts of six white chess piece types, output how many of each must be added or removed to reach a complete 16-piece set. | Easy 1 | Array, Implementation | No attempts yet | 1s | 128 MB | Judgeable |
| [ABC](/mini/problems/019ef7ef-e75a-748c-9f0a-e626cf0f679e): Sort three distinct numbers into A, B, C and print them in an order given by a 3-letter permutation string. | Easy 1 | Sorting, Implementation | No attempts yet | 1s | 128 MB | Judgeable |
| [The Good and the Bad](/mini/problems/019ef7ef-e75b-719e-8054-dce04a3809fb): Count the letters g and b in each hero name, ignoring case, and print whether the name is GOOD, A BADDY, or NEUTRAL. | Easy 1 | String, Implementation, Brute force | No attempts yet | 1s | 128 MB | Judgeable |
| [Line Numbers](/mini/problems/019ef7ef-e75b-719e-8055-367a7c92fbea): Read N lines of text and print each one prefixed with its 1-based line number in the format "number. content". | Easy 1 | Implementation, String | No attempts yet | 1s | 128 MB | Judgeable |
| [Mirror, Oh! Mirror](/mini/problems/019ef7ef-e75c-7672-96a9-35b4eedad980): Read lines of ASCII text until a line of three asterisks, and print each line with its characters reversed. | Easy 1 | String, Implementation | No attempts yet | 1s | 128 MB | Judgeable |
| [Spinner Lock Simulation](/mini/problems/019ef7ef-e75c-7672-96ab-187b9c8982ce): Given the starting digits of a spinner lock and a sequence of button labels, add each label's digits to the wheels modulo 10 and print the final readout. | Easy 1 | Simulation, Implementation, Math, Array | No attempts yet | 1s | 128 MB | Judgeable |
| [TGN Advertising Decision](/mini/problems/019ef7ef-e75c-7672-96ae-16ef09eb80a2): For each test case, compare the no-ad revenue r against e minus c, then print advertise, do not advertise, or does not matter. | Easy 1 | Implementation, Math | No attempts yet | 1s | 128 MB | Judgeable |
| [Triangle and Its Three Sides](/mini/problems/019ef7ef-e75c-7672-96ae-3f45c9507e76): Read triples of positive integers until 0 0 0, and for each print Equilateral, Isosceles, Scalene, or Invalid based on equal sides and the triangle inequality. | Easy 1 | Implementation, Math, Sorting | No attempts yet | 1s | 128 MB | Judgeable |
| [Divisors and Multiples](/mini/problems/019ef7ef-e75c-7672-96ae-70c7ee9420b2): For each pair of numbers, print factor if the first divides the second, multiple if the first is a multiple of the second, or neither. | Easy 1 | Math, Implementation | No attempts yet | 1s | 128 MB | Judgeable |
| [Even Sum Versus Odd Sum](/mini/problems/019ef7ef-e75c-7672-96b0-c54d389a461c): For each of up to 50 sequences, add the even numbers and the odd numbers separately and print EVEN, ODD, or TIE based on which sum is larger. | Easy 1 | Array, Implementation | No attempts yet | 1s | 128 MB | Judgeable |
| [Billing](/mini/problems/019ef7ef-e75c-7672-96b1-83eb7e7883ad): Read item names until EOI and print the total cost of all listed supplies with a dollar sign and two decimals. | Easy 1 | Hash map, Implementation | No attempts yet | 1s | 128 MB | Judgeable |
| [Battle Droid Price](/mini/problems/019ef7ef-e75c-7672-96b1-cd0c4f09383c): For each test case, multiply five part quantities by fixed prices, sum them, and print the total with a dollar sign and two decimals. | Easy 1 | Math, Implementation, Array, Brute force | No attempts yet | 1s | 128 MB | Judgeable |
| [Entry Log Management](/mini/problems/019ef7ef-e75c-7672-96b4-2b4e5d90fe7b): Read N names and print each one converted to lowercase, one per line. | Easy 1 | String, Implementation | No attempts yet | 1s | 256 MB | Judgeable |
| [The Errand Route](/mini/problems/019ef7ef-e75c-7672-96b4-a2ff7abf7e38): Add four travel times given in seconds and print the total split into minutes on the first line and seconds on the second. | Easy 1 | Math, Implementation | No attempts yet | 1s | 128 MB | Judgeable |
| [Receipt](/mini/problems/019ef7ef-e75c-7672-96b4-cc07f393e37e): Given the total price of 10 books and the prices of 9 of them, find the missing book's price. | Easy 1 | Math, Implementation | No attempts yet | 1s | 128 MB | Judgeable |
| [JOI and IOI](/mini/problems/019ef7ef-e75c-7672-96b5-2244324225c5): Count how many length-3 windows of a string equal JOI and how many equal IOI, including overlaps. | Easy 1 | String, Brute force, Implementation | No attempts yet | 1s | 128 MB | Judgeable |
| [Exam Scores](/mini/problems/019ef7ef-e75c-7672-96b5-4a35e2fcd7e1): Given the four subject scores of two students, print the larger of the two totals, or Minguk's total when they tie. | Easy 1 | Implementation, Math | No attempts yet | 1s | 128 MB | Judgeable |
| [Find the Students Who Didn't Submit](/mini/problems/019ef7ef-e75c-7672-96b5-4c933e1c7a33): Given 28 distinct attendance numbers from 1 to 30, print the two missing numbers in increasing order. | Easy 1 | Array, Implementation | No attempts yet | 1s | 128 MB | Judgeable |
| [Do-it, Do-it-Not](/mini/problems/019ef7ef-e75c-7672-96b8-433c5cf54560): For each test case, compare the two middle digits of an even-length binary string and print Do-it if they match, otherwise Do-it-Not. | Easy 1 | String, Implementation, Array | No attempts yet | 1s | 128 MB | Judgeable |
| [Reverse Text](/mini/problems/019ef7ef-e75c-7672-96c2-19253ebc4765): Read each test case line and print its characters in reverse order. | Easy 1 | String, Implementation | No attempts yet | 1s | 128 MB | Judgeable |
| [Sounds fishy!](/mini/problems/019ef7ef-e75c-7672-96c7-165b626c484d): Read four depth readings and print Fish Rising, Fish Diving, Fish At Constant Depth, or No Fish based on their ordering. | Easy 1 | Implementation, Array | No attempts yet | 2s | 512 MB | Judgeable |
| [Which Alien?](/mini/problems/019ef7ef-e75c-7672-96c7-4c24b461f1e3): Given the number of antennae and eyes a witness saw, print the names of all alien species whose ranges match, in the order given. | Easy 1 | Implementation, Brute force, Math | No attempts yet | 2s | 512 MB | Judgeable |
| [Multiple Choice](/mini/problems/019ef7ef-e75c-7672-96c7-645eeaac07c9): Read a student's N answers followed by the N correct answers, and count how many positions match. | Easy 1 | Array, Implementation | No attempts yet | 2s | 512 MB | Judgeable |
| [Alien](/mini/problems/019ef7ef-e75d-736e-9acf-1cd9ce7460ff): Given a point and n axis-aligned rectangles, decide whether any rectangle contains the point, boundaries included. | Easy 1 | Geometry, Implementation, Brute force, Array | No attempts yet | 2s | 128 MB | Judgeable |
| [Factorial](/mini/problems/019ef7ef-e75d-736e-9ada-e029af171fab): Read n and print the ones digit of n factorial. | Easy 1 | Math, Implementation | No attempts yet | 1s | 128 MB | Judgeable |
| [Lifeguard](/mini/problems/019ef7ef-e75d-736e-9adb-1e7c063e6fc3): The task is to count children farther than k meters from the lifeguard position. | Easy 1 | Geometry, Math | No attempts yet | 1s | 512 MB | Judgeable |
| [Letter Counter](/mini/problems/019ef7ef-e75d-736e-9adc-101b3c5267f4): Count how many times each letter appears across the given lines and print nonzero counts from a to z then A to Z. | Easy 1 | Array, String | No attempts yet | 1s | 512 MB | Judgeable |
| [Long Tape](/mini/problems/019ef7ef-e75d-736e-9adc-a25d149f0d7f): Choose a nonempty contiguous segment of the given sequence so its arithmetic mean is as small as possible. | Easy 1 | Array | No attempts yet | 1s | 128 MB | Judgeable |
| [Figures](/mini/problems/019ef7ef-e75d-736e-9adc-b6f3fa54b9d4): Check whether any three consecutive figures contain one circle, one square, and one triangle. | Easy 1 | Sliding window, Array | No attempts yet | 1s | 128 MB | Judgeable |
| [Wężyk](/mini/problems/019ef7ef-e75d-736e-9add-44e5105dbee2): Print the numbers 1 to n squared in n rows that alternate between left-to-right and right-to-left order. | Easy 1 | Simulation, Matrix | No attempts yet | 1s | 128 MB | Judgeable |
| [Flipping Coins](/mini/problems/019ef7ef-e75d-736e-9add-4c4285254856): Count the heads and tails and flip the coins on the less frequent side so all coins show the same face. | Easy 1 | Greedy, Array | No attempts yet | 1s | 128 MB | Judgeable |
| [Caesar Cipher](/mini/problems/019ef7ef-e75d-736e-9ade-354c8fe47a8f): Given the encrypted message and its original first letter, recover the shift and decode the full message. | Easy 1 | String, Implementation | No attempts yet | 1s | 128 MB | Judgeable |
| [Stroll](/mini/problems/019ef7ef-e75d-736e-9adf-0fd0be28a973): Given a walk of N, S, E and W steps on a grid, compute the Manhattan distance from the endpoint back to the start. | Easy 1 | Simulation, Math | No attempts yet | 2s | 128 MB | Judgeable |
| [Letter Bank](/mini/problems/019ef7ef-e75d-736e-9ae2-a04ac8aa6cb0): Decide whether the second word uses exactly the letters of the first word, each at least once. | Easy 1 | Hash map, String | No attempts yet | 1s | 128 MB | Judgeable |
| [First and Last Letter](/mini/problems/019ef7ef-e75d-736e-9ae3-1a18a8c14baf): Print the first and last letter of each given uppercase string, doubling the letter for length 1. | Easy 1 | String | No attempts yet | 1s | 128 MB | Judgeable |
| [Reverse Each Word](/mini/problems/019ef7ef-e75d-736e-9ae3-368611a18454): For each of T sentences, print the words in the same order with the letters inside every word reversed. | Easy 1 | String, Implementation | No attempts yet | 1s | 128 MB | Judgeable |
| [Kkung's Space Trip](/mini/problems/019ef7ef-e75e-768e-a7c0-f8653a34ad5f): Count the ships that reach the destination by checking whether each ship's fuel covers its burn rate over the travel time. | Easy 1 | Math, Implementation | No attempts yet | 2s | 128 MB | Judgeable |
| [Fraud Busters](/mini/problems/019ef7ef-e75e-768e-a7c2-418384d579e9): Match each 9-character database code against the scanned code, treating every star as a wildcard, and print the matches in input order. | Easy 1 | String matching, Implementation | No attempts yet | 1s | 128 MB | Judgeable |
| [Balloon Colors](/mini/problems/019ef7ef-e75e-768e-a7c3-0f0636b7dbd4): Check whether the first color differs from X and the last color differs from Y, then print BOTH, EASY, HARD, or OKAY. | Easy 1 | Implementation | No attempts yet | 1s | 128 MB | Judgeable |
| [Birthday Statistics](/mini/problems/019ef7ef-e75e-768e-a7c5-15680ccc074d): Count how many of the n employees were born in each month and print the twelve monthly totals. | Easy 1 | Array, Implementation | No attempts yet | 1s | 128 MB | Judgeable |
| [Encoding Binary Numbers](/mini/problems/019ef7ef-e75e-768e-a7c5-4dac6e52ad79): Encode each binary string as run lengths followed by digits and print the result per line. | Easy 1 | String, Implementation | No attempts yet | 1s | 128 MB | Judgeable |
| [Christmas Gift Draw](/mini/problems/019ef7ef-e75e-768e-a7c5-f310341c3c77): Given the gift each guest drew, print for every guest who received the gift they brought. | Easy 1 | Array | No attempts yet | 2s | 512 MB | Judgeable |
| [Gift](/mini/problems/019ef7ef-e75e-768e-a7c6-1a499e464aeb): Count the days on which the recorded time is at least k milliseconds faster than the previous day. | Easy 1 | Array, Implementation | No attempts yet | 2s | 512 MB | Judgeable |
| [Morton Numbers](/mini/problems/019ef7ef-e75e-768e-a7c6-a4cb73d7b5e4): Read integers x and y and print their Morton number, built by interleaving the bits of x and y. | Easy 1 | Bit manipulation | No attempts yet | 2s | 512 MB | Judgeable |
| [Gray code](/mini/problems/019ef7ef-e75e-768e-a7c6-d85db7dc28c2): Convert an n-bit binary string to its standard Gray code by copying the first bit and adding each adjacent pair of bits without carry. | Easy 1 | Bit manipulation, String | No attempts yet | 1s | 128 MB | Judgeable |
| [Ship Selection](/mini/problems/019ef7ef-e75e-768e-a7cb-03c801deb300): Count the ships whose fuel covers consumption times the integer-division travel time for the given distance. | Easy 1 | Implementation, Math | No attempts yet | 1s | 256 MB | Judgeable |
| [Acronyms](/mini/problems/019ef7ef-e75e-768e-a7cb-2ab8ac148895): Given an acronym and candidate phrases, print the phrases whose word initials match the acronym letters in order. | Easy 1 | String, Implementation | No attempts yet | 1s | 256 MB | Judgeable |
| [Longest Run of X's](/mini/problems/019ef7ef-e75e-768e-a7cb-59edb6c46126): Count the longest run of consecutive X marks in each hallway and print its length in the required sentence. | Easy 1 | Array | No attempts yet | 1s | 256 MB | Judgeable |
| [Count Vowels](/mini/problems/019ef7ef-e75e-768e-a7cb-5c6b22b8ea47): Count the vowels a, e, i, o, and u in each given lowercase word and print the result in the required sentence. | Easy 1 | String | No attempts yet | 1s | 256 MB | Judgeable |
| [Golden Khon Kaen](/mini/problems/019ef7ef-e75e-768e-a7cc-f281de6e6c88): Count how many times the word GOLDEN can be formed from each given string of capital letters. | Easy 1 | Hash map | No attempts yet | 10s | 64 MB | Judgeable |
| [Server](/mini/problems/019ef7ef-e75e-768e-a7ce-97d854bf5e63): Count how many jobs from the front finish in request order before their total duration exceeds T. | Easy 1 | Prefix sum, Simulation | No attempts yet | 1s | 256 MB | Judgeable |
| [Subin and the Sequence](/mini/problems/019ef7ef-e75e-768e-a7d0-9db0c1d90984): Given the prefix averages of a sequence, recover the original sequence term by term. | Easy 1 | Prefix sum, Math | No attempts yet | 1s | 32 MB | Judgeable |
| [Mosquito Trap](/mini/problems/019ef7ef-e75e-768e-a7d0-a1e3771f3078): Find the smallest area of an axis-aligned square that covers all given points on the table. | Easy 1 | Geometry | No attempts yet | 1s | 32 MB | Judgeable |
| [Keystrokes per Finger](/mini/problems/019ef7ef-e75e-768e-a7d0-ce7b7eea5777): Count how many times each of the eight fingers presses a key when the given string is typed on the fixed US layout. | Easy 1 | Implementation, Array | No attempts yet | 1s | 32 MB | Judgeable |
| [Christmas Party](/mini/problems/019ef7ef-e75e-768e-a7d3-134c8c88a35d): Tally each friend's score over M guessing games from the targets and the written names. | Easy 1 | Implementation | No attempts yet | 1s | 256 MB | Judgeable |
| [Vertical Reading](/mini/problems/019ef7ef-e75e-768e-a7d4-748bc095979d): Read five given words column by column from top to bottom, skipping missing letters in shorter words, and print the letters in that order. | Easy 1 | Simulation, Array, String | No attempts yet | 1s | 256 MB | Judgeable |
| [Reversing Card Segments](/mini/problems/019ef7ef-e75e-768e-a7d4-8ef9f7dcd77d): Reverse ten given segments of a 20-card row that starts in order and print the final arrangement. | Easy 1 | Array, Simulation | No attempts yet | 1s | 256 MB | Judgeable |
| [Count Value](/mini/problems/019ef7ef-e75e-768e-a7d4-99afd287ae18): Count how many times the integer v appears among the N given integers. | Easy 1 | Array | No attempts yet | 1s | 256 MB | Judgeable |
| [Find the Alphabet](/mini/problems/019ef7ef-e75e-768e-a7d4-a0d5ceeaca8b): Given a lowercase word of length at most 100, output the 0-based first index of each letter a to z, or -1 when absent. | Easy 1 | Array, String | No attempts yet | 1s | 256 MB | Judgeable |
| [Insert Balls](/mini/problems/019ef7ef-e75e-768e-a7d4-a46ff77f278a): Fill N baskets by writing ball number k into baskets i through j for each operation, then print all baskets. | Easy 1 | Array, Simulation | No attempts yet | 1s | 256 MB | Judgeable |
| [The nth Fibonacci Number](/mini/problems/019ef7ef-e75e-768e-a7d5-9076accf46eb): Given n up to 20, compute the nth Fibonacci number defined from 0 and 1. | Easy 1 | Dynamic programming, Recursion | No attempts yet | 1s | 256 MB | Judgeable |
| [N-orthotope](/mini/problems/019ef7ef-e75e-768e-a7d6-1cc02ada5701): Given two axis-aligned boxes in N dimensions, print the dimension of their overlap, or -1 when they do not meet. | Easy 1 | Implementation, Geometry | No attempts yet | 1s | 256 MB | Judgeable |
| [Palindrome Check](/mini/problems/019ef7ef-e75e-768e-a7d7-651dc4156504): Check whether the given lowercase word reads the same forward and backward and print 1 or 0. | Easy 1 | String, Two pointers | No attempts yet | 1s | 256 MB | Judgeable |
| [Use Every Letter](/mini/problems/019ef7ef-e75e-768e-a7d9-02500783da96): Decide for each of up to 50 sentences whether it contains every letter a to z, and list the missing letters otherwise. | Easy 1 | String, Array | No attempts yet | 2s | 256 MB | Judgeable |
| [Communication Channels](/mini/problems/019ef7ef-e75e-768e-a7d9-7af18b678107): Compare each transmitted binary string with its received copy and print OK when they match and ERROR otherwise. | Easy 1 | String, Implementation | No attempts yet | 1s | 256 MB | Judgeable |
| [Balancing Weights](/mini/problems/019ef7ef-e75e-768e-a7d9-a13e4951612c): You sum the signed positions of the weights and report whether the lever tips left, tips right, or stays balanced. | Easy 1 | Implementation, Math | No attempts yet | 1s | 256 MB | Judgeable |
| [Logical Functions: AND and OR](/mini/problems/019ef7ef-e75e-768e-a7db-b6290b7be0c2): Check each submitted weight and bias by testing all four binary inputs and report whether the neuron matches the requested AND or OR gate. | Easy 1 | Simulation, Implementation | No attempts yet | 2s | 256 MB | Judgeable |
| [Affine Cipher](/mini/problems/019ef7ef-e75f-7259-a126-2daa0560039c): Apply E(X) = (aX + b) mod 26 to each uppercase letter of the plaintext and print the ciphertext. | Easy 1 | Implementation, String, Math | No attempts yet | 5s | 256 MB | Judgeable |
| [The Princess and the Magic Mirror](/mini/problems/019ef7ef-e75f-7259-a126-588a60cc36fa): Print an N by N picture unchanged, mirrored left to right, or flipped top to bottom according to the given mood number. | Easy 1 | Matrix, Implementation | No attempts yet | 2s | 256 MB | Judgeable |
| [Persistence](/mini/problems/019ef7ef-e75f-7259-a127-52ec97ccc339): Count how many times multiplying the decimal digits together reduces the given number to a single digit. | Easy 1 | Simulation, Implementation | No attempts yet | 1s | 256 MB | Judgeable |
| [Box intersection volume](/mini/problems/019ef7ef-e75f-7259-a127-96f38c4756b7): Compute the volume shared by N axis-aligned boxes by intersecting their x, y, and z ranges. | Easy 1 | Math | No attempts yet | 1s | 256 MB | Judgeable |
| [Cards](/mini/problems/019ef7ef-e75f-7259-a12b-280cce607654): Two cards are compared at a time with the smaller pocketed, so find the largest possible sum of pocketed numbers for the given row. | Easy 1 | Array | No attempts yet | 1s | 32 MB | Judgeable |
| [Power of Two](/mini/problems/019ef7ef-e75f-7259-a12c-08323e1d7fa5): Print 1 if the given natural number N is a power of two and 0 otherwise. | Easy 1 | Bit manipulation | No attempts yet | 2s | 512 MB | Judgeable |
| [Magic Trick](/mini/problems/019ef7ef-e75f-7259-a130-837319ca888f): Find the card shared by the chosen rows of two 4 by 4 layouts, or report a bad layout or cheating. | Easy 1 | Array, Implementation | No attempts yet | 5s | 512 MB | Judgeable |
| [George Boole](/mini/problems/019ef7ef-e75f-7259-a13f-704007bc3cdb): Read one boolean operation in the form true AND false and print its result. | Easy 1 | Implementation, String, Math, Bit manipulation | No attempts yet | 2s | 512 MB | Judgeable |
| [Hamming Distance](/mini/problems/019ef7ef-e75f-7259-a142-eb1d6dded533): Read two n-dimensional integer vectors and count the positions where their entries differ. | Easy 1 | Implementation, Array | No attempts yet | 1s | 256 MB | Judgeable |
| [Grass Seed Inc.](/mini/problems/019ef7ef-e75f-7259-a144-049ee9c55ced): Given the cost per square metre and a list of rectangular lawns, print the total cost of seeding all of them, rounded to seven decimals. | Easy 1 | Math, Implementation | No attempts yet | 2s | 512 MB | Judgeable |
| [Handball](/mini/problems/019ef7ef-e75f-7259-a145-6b87e19c3a02): Given each player's goal counts across M matches, count how many players scored at least once in every match. | Easy 1 | Array, Implementation | No attempts yet | 2s | 512 MB | Judgeable |
| [Zero or One](/mini/problems/019ef7ef-e75f-7259-a145-839f15655252): Given three bits picked by three players, print the player whose bit differs from the other two, or \* if there is no such player. | Easy 1 | Implementation, Brute force | No attempts yet | 1s | 512 MB | Judgeable |
| [The Y Bus Goes Vroom](/mini/problems/019ef7ef-e760-70bf-ab3b-19c7bb629444): Simulate the passenger count as a bus travels N stops with given boarding and alighting numbers, then print the driver's fixed name. | Easy 1 | Simulation, Implementation, Math | No attempts yet | 2s | 256 MB | Judgeable |
| [Pick the Quadrant](/mini/problems/019ef7ef-e760-70bf-ab3b-838a534d40d1): Read the x and y coordinates of a nonzero point and print which of the four quadrants it lies in. | Easy 1 | Implementation, Math | No attempts yet | 1s | 512 MB | Judgeable |

Page 1, [Next](/mini/problems?page=2\&set=interview-warmup)

## Curated sets

- [First steps](/mini/problems?set=first-steps), 2,367 problems. Loops, arithmetic, I/O. Start here
- [Interview warm-up](/mini/problems?set=interview-warmup), 4,882 problems. Short whiteboard warmups
- [Interview core](/mini/problems?set=interview-core), 3,628 problems. Mediums from real onsites
- [Interview hard](/mini/problems?set=interview-hard), 63 problems. Hard final-round questions
- [Dynamic programming ladder](/mini/problems?set=dp-ladder), 6,506 problems. Every judgeable DP problem, easiest first
- [Graphs and traversal](/mini/problems?set=graph-traversal), 7,392 problems. BFS, DFS, shortest paths, and trees
- [Strings and text](/mini/problems?set=strings-and-text), 3,620 problems. Parsing, matching, and tries
- [Math and counting](/mini/problems?set=math-and-counting), 13,206 problems. Number theory, combinatorics, and geometry
