2026 Jan OPPE 1 - Set 3¶
Nearest Multiple
Return the multiple of k closest to n. Covers floor division, distance comparison, and the tie-breaking >= rule.
Encode by Shifting Ends
Shift first and last characters by ±1 in ASCII with guards for 'z' and 'a'. Covers ord(), chr(), and edge cases for length-1 strings.
Repeat Second Half of a Tuple
Same as 2025 May Set 5 - S1Q3. Covers (n+1)//2 ceiling division and tuple concatenation.
Process Orders Aggregation
Aggregate customer order data with a minimum quantity threshold. Covers list comprehensions, setdefault(), and walrus operator filtering.
Snakes and Ladders - Next Position
Compute the next board position given dice, snakes, and ladders. Full I/O - covers dict.get(pos, pos) and the >100 boundary rule.
Inventory Stock Analytics
Four functions on warehouse inventory - reorder alerts, totals, stock classification, transfer simulation. Covers next(..., None), reuse of helper functions, and multi-condition guards.
Dual Pattern Printing
Print a symmetric concatenation pattern and a triangular sequential number pattern. Full I/O - covers running counters and two-loop symmetric patterns.
Solved