> ## Documentation Index
> Fetch the complete documentation index at: https://docs.codecrafters.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Question Explanations

When explaining quiz answers, follow a two-part structure:

1. Explain why the selected option is correct or incorrect
2. If the selected option was incorrect, state the correct answer in another paragraph and optionally explain why

Just repeating the correct answer isn't useful. When a user gets something wrong, it's a great opportunity to address why their thinking mismatched.

## Bad Example

> **Question:** What does `PING` return in Redis?
>
> * `OK`
> * `PONG` ✅
> * `PING`
>
> **Explanation:**\
>
>
> The correct answer is `PONG`.

> [!WARNING]
>
> This just restates the answer. It doesn't help the user understand why they
> might have chosen wrong.

## Good Example

> **Question:** What does `PING` return in Redis?
>
> * `OK`
> * `PONG` ✅
> * `PING`
>
> **Explanation:**\
>
> `OK` is the response for commands like `SET`, not `PING`.\
> \
>
> The correct answer is `PONG`. Redis uses this pattern to check if the server is alive.

> [!TIP]
>
> This addresses a likely point of confusion, then reinforces the correct answer
> with context.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.