{% extends "base.html" %} {% import "_partials.html" as ui %} {# Chrome, tab set, pane split, action bar and console follow two-sum-desktop / two-sum-mobile. The right pane is a plain textarea editor, not a copy of the source editor component. #} {% block title %}{{ question.number }}. {{ question.title }} - LeetCode{% endblock %} {% block main %}
{{ question.summary }}
{% for line in question.details %}{{ line }}
{% endfor %} {% for example in question.examples %}Example {{ loop.index }}:
Input: {{ example.input }}
Output: {{ example.output }}{% if example.explanation %}
Explanation: {{ example.explanation }}{% endif %}
{% endfor %}
{% if question.constraints %}
Constraints:
{{ constraint }}Follow-up: {{ question.follow_up }}
{% endif %}{{ no_workspace_notice }}
The catalogue row for this question — its number, title, difficulty and acceptance rate — comes from the captured problem-set page. Its statement was not captured, and inventing one would not be an honest reconstruction.
Open 1. Two Sum, the question this clone reproduces in full.
Discussion Rules
The captured thread is visitor-written content attributed to named accounts, so this clone reproduces the section and its rules but none of the posts.
{{ paragraph }}
{% endfor %} {% for lang, code in question.editorial_code.items() %}{{ code }}
{% endfor %}
This editorial was written for the offline clone. The source editorial is behind a Premium subscription and was not captured.
{% else %}No editorial is reproduced for this question.
{% endif %} {% elif tab == 'solutions' %}{{ entry.title }}
These entries are local fixture data. The source community solutions were not captured.
{% else %}No community solution is reproduced for this question.
{% endif %} {% else %}| Status | Language | Runtime | Memory | Submitted |
|---|---|---|---|---|
| {{ entry.status }} | {{ entry.language|language_label }} | {% if entry.runtime_ms is not none %}{{ entry.runtime_ms }} ms{% else %}N/A{% endif %} | {% if entry.memory_mb is not none %}{{ entry.memory_mb }} MB{% else %}N/A{% endif %} | {{ entry.created_at }} |
You have not submitted a solution to this question yet.
{% endif %} {% else %}You need to log in to see your submissions.
{% endif %} {% endif %}