Code RoomRecurring meeting timezone spec
HardPrep Room Coding #4152

Recurring meeting timezone spec

Vibe & agenticAlgorithms & data structuresSenior–Staff~22 min

You're directing an AI agent to build a Python scheduling feature: a user creates a recurring weekly meeting at "9:00 AM in their local timezone," and the system must compute the correct UTC instant for each future occurrence and store reminders. Write the prompt/spec that makes the agent handle this correctly across DST transitions and policy changes. What constraints and edge cases do you put in writing, and what library behavior do you mandate? Then describe the subtly wrong thing a naive prompt produces.

Implement
weekly_meeting_utc(first_date: str, local_hour: int, occurrences: int, standard_offset_hours: int, dst_start: str, dst_end: str) → list[str]
Examples
in["2026-03-04",9,3,-5,"2026-03-08","2026-11-01"]out["2026-03-04T14:00Z","2026-03-11T13:00Z","2026-03-18T13:00Z"]
in["2026-10-28",9,2,-5,"2026-03-08","2026-11-01"]out["2026-10-28T13:00Z","2026-11-04T14:00Z"]
What a strong answer looks like

Treat the AI’s output as a draft to verify, not an answer to trust. Name the specific flaw and the input that triggers it, say how you’d catch it (tests, edge cases, reading critically), and how you’d re-prompt or decompose to get it right.

0:00 of about 22 min

Vibe & agentic: describe the solution in plain language (or narrate it) and the coach grades your approach.

Which questions mattered is sealed until you submit. Telling you now would just be handing over the edge cases.