Code RoomParse standard file format
MediumPrep Room Coding #4323

Parse standard file format

Vibe & agenticAlgorithms & data structuresMid–Senior~15 min

You need a TypeScript function that parses a well-known, stable file format (say, a standard `.env` file) into a typed object, with a clear edge-case list you can enumerate up front. One engineer launches an agent to 'iterate until it handles all cases'; you think a single well-specified one-shot prompt will nail it. Argue your position and name the one thing that makes a one-shot the right call here.

Implement
choose_prompt_strategy(enumerated_cases: list[str], discovered_cases: list[str], format_is_stable: bool) → str
Examples
in[["quoted values","equals in values","comments","blank lines","export prefix","multiline"],["comments","multiline"],true]out"one_shot"
in[["quoted values","comments"],["multiline"],true]out"agent_loop"
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 15 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.