Anthropic

Verified interview challenge

Build an employee time and pay manager

Extend office-session tracking into a system that can rank time and calculate historical pay.

Unlock with Full Access

The challenge

Build an employee manager that starts with office sessions and grows into rankings, promotions, pay history and double-pay periods. The same implementation must support all four levels.

Time records become the basis for several different queries. Preserve the meaning of a completed session as an employee's position or pay changes, and handle the supplied interval rules when pay periods overlap.

What you'll practise

  • Session history

    Track completed work and time-based queries consistently.

  • Interval accounting

    Combine promotion and double-pay periods without miscounting time or compensation.

Your coding workspacePreview
Current partFurther parts unlock as you progress
solution.pyPython 3.13
# Build on your implementation

# Run checks for the current part

# Full starter code included
Current-part checks

Run your code to see results.

The complete sequence, starter code and checks are included with Full Access.