6 views
25 Jan 2026
Print a/b as integer. If b is 0, print DIVIDE_BY_ZERO....
6 views
25 Jan 2026
Given n integers and index i, print a[i] or OUT_OF_RANGE....
4 views
25 Jan 2026
If the token is not a valid integer (optional sign, digits only), print INVALID....
6 views
25 Jan 2026
Given a JSON object. If invalid, print INVALID_JSON. Else print how many keys it has....
7 views
25 Jan 2026
If date is valid (YYYY-MM-DD), print OK else INVALID_DATE....
6 views
25 Jan 2026
Given n numbers, print average with 2 decimals. If n=0, print EMPTY....
7 views
25 Jan 2026
Process q commands: PUSH x or POP. POP prints value, but if empty prints UNDERFLOW....
4 views
25 Jan 2026
You get n pairs a b. For each, print a/b as integer. If b=0 print ERROR....
4 views
25 Jan 2026
Given x, print floor(sqrt(x)). If x is negative, print ERROR....
4 views
25 Jan 2026
If age is between 0 and 120, print OK. Otherwise print INVALID_AGE....
5 views
25 Jan 2026
Input a b meaning a/b. If b=0 print ERROR. Else print reduced fraction p q....
5 views
25 Jan 2026
Print OK if input is valid IPv4 address (0..255 each part), else INVALID_IP....
6 views
25 Jan 2026
Given an integer as text, print it if it fits 32-bit signed, else print OVERFLOW....
6 views
25 Jan 2026
Input is a comma-separated list of integers. If any item is invalid, print ERROR, else print the maximum....
5 views
25 Jan 2026
Read lines KEY=VALUE. Count how many lines are invalid (missing '=', empty key). Print error count....
6 views
25 Jan 2026
Evaluate postfix expression. If it ever divides by zero or lacks operands, print ERROR....
6 views
25 Jan 2026
JSON object must contain keys id and name. Print OK, MISSING_KEYS, or INVALID_JSON....
5 views
25 Jan 2026
Given base b and string s, convert to decimal. If s contains invalid digit for base, print INVALID....
4 views
25 Jan 2026
Decode k[text]. If brackets are unbalanced or number is missing, print ERROR....
4 views
25 Jan 2026
Each non-empty line should look like LEVEL:message. LEVEL is INFO, WARN, or ERROR. Count each level and also count invalid lines. Print: info warn error invalid....