Grokking the Anthropic Forward Deployed Engineer Interview
0% completed
How Staged Coding Rounds Work
def usage_by_customer(requests): totals = {} for customer, input_tokens, output_tokens in requests: totals[customer] = totals.get(customer, 0) + input_tokens + output_tokens return totals
This function answers stage 1 of a task: report the tokens each customer used. It is short, correct, and passes every stage 1 check. Then the interviewer adds stage 2: "An output token costs 5 units and an input token costs 1. Report cost per customer."
The function cannot answer that
.....
.....
.....
Like the course? Get enrolled and start learning!
Reading Progress
0%