Code Room
Vibe codingHardvc-g194
Subject Ai prompt specLevel Senior–Staff~22 minCommon in Algorithms & data structures interviewsIndustries Software development, Technology

Question

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.

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.

Describe your solution

Vibe coding: describe the solution in plain language (or narrate it) and the coach grades your approach. Generating runnable code from your description is coming next.

Run or narrate your approach, then ask the coach.