offrpathSign inStart practicing
how_you_prepare.md+1-1

Memorize 500 LeetCode solutions.Learn when to reject the AI's.

Coding interviews are moving from writing code to judging it. Offrpath is free practice for the new round: real pull requests from an AI, and you decide what ships.

The AI writes a working function in seconds. Most of the time it's fine. Some of the time it leaks every user's data, and the interview is now about knowing which.

How it works

  1. 01

    Read the PR

    ai-assistant opens a pull request against a real-feeling codebase. A password reset, a checkout, a webhook.

  2. 02

    Flag what you'd stop

    Click the line. Say what's wrong with it: bug, edge case, security, performance or readability.

  3. 03

    See what slipped through

    Every planted issue, caught or missed, explained on the line it lives on. Next PRs aim at your weak spots.

no account, nothing saved

Would you ship this?

Trust or Reject · difficulty 2 of 3

Read settings from an uploaded file

Users upload a settings file written as JSON, like {"theme": "dark", "beta": true}. Write load_settings(text) that turns the file's text into a dict and raises ValueError if the text isn't valid JSON.

def load_settings(text: str) -> dict:
"""Turn an uploaded settings file into a dict."""
settings = eval(text)
if not isinstance(settings, dict):
raise ValueError("settings must be a JSON object")
return settings

ai-assistant requested your review

Approve?

Start reviewing, free

Send feedback

What kind?

This page's address is sent with it.0 / 2000