File size: 10,676 Bytes
7f8e190 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 | {% extends "base.html" %}
{% import "_partials.html" as ui %}
{# Copy, ordering, colours and link targets are transcribed from
home-desktop / home-mobile. The illustrations are locally drawn
approximations of the captured compositions; see SOURCE_PROVENANCE.md. #}
{% block title %}LeetCode - The World's Leading Online Programming Learning Platform{% endblock %}
{% block header %}{{ ui.marketing_header(member) }}{% endblock %}
{% block main %}
<section class="hero">
<div class="hero__wedge" aria-hidden="true"></div>
<div class="hero__art" aria-hidden="true">
<svg viewBox="0 0 460 340" role="img" focusable="false">
<g transform="rotate(-9 230 170)">
<rect x="30" y="30" width="400" height="280" rx="22" fill="#ffffff"/>
<rect x="52" y="52" width="60" height="52" rx="10" fill="#38c6f4"/>
<rect x="124" y="52" width="60" height="52" rx="10" fill="#8ed24b"/>
<rect x="196" y="52" width="60" height="52" rx="10" fill="#ffc93c"/>
<rect x="268" y="52" width="60" height="52" rx="10" fill="#fd6a5e"/>
<rect x="52" y="126" width="180" height="8" rx="4" fill="#dfe6ee"/>
<rect x="52" y="154" width="210" height="8" rx="4" fill="#dfe6ee"/>
<rect x="52" y="182" width="150" height="8" rx="4" fill="#dfe6ee"/>
<rect x="52" y="210" width="196" height="8" rx="4" fill="#dfe6ee"/>
<rect x="52" y="238" width="120" height="8" rx="4" fill="#dfe6ee"/>
<circle cx="256" cy="128" r="5" fill="#8ed24b"/>
<circle cx="256" cy="158" r="5" fill="#fd6a5e"/>
<circle cx="256" cy="188" r="5" fill="#ffc93c"/>
<circle cx="256" cy="218" r="5" fill="#fd6a5e"/>
<circle cx="256" cy="248" r="5" fill="#8ed24b"/>
<path d="M300 40h130v250H300z" fill="#ffffff"/>
<circle cx="365" cy="112" r="42" fill="#8ecdf5"/>
<path d="M365 70a42 42 0 0 1 36 63l-36-21Z" fill="#c9e6fb"/>
<rect x="318" y="176" width="94" height="7" rx="3.5" fill="#dfe6ee"/>
<rect x="318" y="200" width="70" height="7" rx="3.5" fill="#dfe6ee"/>
<rect x="318" y="224" width="86" height="7" rx="3.5" fill="#dfe6ee"/>
</g>
</svg>
</div>
<div class="hero__text">
<h1 class="hero__title">A New Way to Learn</h1>
<p class="hero__lead">LeetCode is the best platform to help you enhance your skills, expand your knowledge and prepare for technical interviews.</p>
{% if member %}
<a class="pill-button" href="/problemset/">Start Practising <span class="chev" aria-hidden="true"></span></a>
{% else %}
<a class="pill-button" href="/accounts/signup/">Create Account <span class="chev" aria-hidden="true"></span></a>
{% endif %}
</div>
</section>
<section class="mk-explore">
<div class="mk-explore__text">
<h2 class="mk-heading mk-heading--teal">
Start Exploring
<span class="hex hex--teal" aria-hidden="true">
<svg viewBox="0 0 24 24" width="22" height="22" focusable="false"><path d="M4 8 12 4l8 4v8l-8 4-8-4Z" fill="none" stroke="currentColor" stroke-width="1.6"/><path d="m7.5 10.5 4.5-2 4.5 2-4.5 2Z" fill="currentColor"/><path d="M15 12v2.4c0 .8-1.3 1.4-3 1.4s-3-.6-3-1.4V12" fill="none" stroke="currentColor" stroke-width="1.4"/></svg>
</span>
</h2>
<p class="mk-body">Explore is a well-organized tool that helps you get the most out of LeetCode by providing structure to guide your progress towards the next step in your programming career.</p>
<p class="mk-cta"><a href="/explore/">Get Started <span class="chev chev--link" aria-hidden="true"></span></a></p>
</div>
<div class="mk-explore__art" aria-hidden="true">
<svg viewBox="0 0 320 220" role="img" focusable="false">
<rect x="10" y="34" width="150" height="150" rx="14" fill="#fdf0d0"/>
<rect x="52" y="24" width="170" height="168" rx="14" fill="#d6efc4"/>
<rect x="104" y="14" width="200" height="188" rx="16" fill="#ffffff"/>
<path d="M104 30a16 16 0 0 1 16-16h168a16 16 0 0 1 16 16v92H104Z" fill="#3fc7f0"/>
<rect x="122" y="30" width="70" height="12" rx="6" fill="#9fe3f7"/>
<rect x="200" y="30" width="50" height="12" rx="6" fill="#9fe3f7"/>
<rect x="122" y="56" width="32" height="30" rx="7" fill="#9fe3f7"/>
<rect x="164" y="56" width="90" height="30" rx="7" fill="#9fe3f7"/>
<rect x="122" y="146" width="86" height="10" rx="5" fill="#e3e9f0"/>
<circle cx="258" cy="132" r="30" fill="#ffffff"/>
<path d="m251 122 18 10-18 10Z" fill="#cfd8e3"/>
</svg>
</div>
</section>
<section class="mk-duo">
<article class="mk-duo__col">
<div class="hex-row" aria-hidden="true">
<span class="hex hex--blue"><svg viewBox="0 0 24 24" width="30" height="30" focusable="false"><path d="M4 8 12 4l8 4v8l-8 4-8-4Z" fill="currentColor"/><text x="12" y="14.5" text-anchor="middle" font-size="7" fill="#ffffff" font-family="inherit">4250</text></svg></span>
<span class="hex hex--green"><svg viewBox="0 0 24 24" width="30" height="30" focusable="false"><path d="M4 8 12 4l8 4v8l-8 4-8-4Z" fill="currentColor"/><circle cx="9.6" cy="10.6" r="1.7" fill="#ffffff"/><circle cx="14.4" cy="10.6" r="1.7" fill="#ffffff"/><path d="M6.6 15.4c0-1.7 1.3-2.6 3-2.6s3 .9 3 2.6Zm4.8 0c0-1.7 1.3-2.6 3-2.6s3 .9 3 2.6Z" fill="#ffffff"/></svg></span>
<span class="hex hex--yellow"><svg viewBox="0 0 24 24" width="30" height="30" focusable="false"><path d="M4 8 12 4l8 4v8l-8 4-8-4Z" fill="currentColor"/><path d="M9.4 8h5.2v3a2.6 2.6 0 0 1-5.2 0Zm1.6 5.4h2v2h1.6v1.2H9.4v-1.2H11Z" fill="#ffffff"/></svg></span>
</div>
<h2 class="mk-heading mk-heading--blue">Questions, Community & Contests</h2>
<p class="mk-body">Over 4250 questions for you to practice. Come and join one of the largest tech communities with hundreds of thousands of active users and participate in our contests to challenge yourself and earn rewards.</p>
<p class="mk-cta"><a href="/problemset/">View Questions <span class="chev chev--link" aria-hidden="true"></span></a></p>
</article>
<article class="mk-duo__col">
<div class="hex-row" aria-hidden="true">
<span class="hex hex--gold"><svg viewBox="0 0 24 24" width="30" height="30" focusable="false"><path d="M4 8 12 4l8 4v8l-8 4-8-4Z" fill="currentColor"/><rect x="8" y="10.4" width="8" height="5.2" rx="1" fill="#ffffff"/><path d="M10.4 10.4V9.2h3.2v1.2" fill="none" stroke="#ffffff" stroke-width="1.1"/></svg></span>
<span class="hex hex--grey"><svg viewBox="0 0 24 24" width="30" height="30" focusable="false"><path d="M4 8 12 4l8 4v8l-8 4-8-4Z" fill="currentColor"/><rect x="9" y="8.6" width="6" height="7.4" rx="1" fill="#ffffff"/><path d="M10.4 10.6h3.2M10.4 12.4h3.2M10.4 14.2h2" stroke="#9e9e9e" stroke-width="0.9"/></svg></span>
</div>
<h2 class="mk-heading mk-heading--gold">Companies & Candidates</h2>
<p class="mk-body">Not only does LeetCode prepare candidates for technical interviews, we also help companies identify top technical talent. From sponsoring contests to providing online assessments and training, we offer numerous services to businesses.</p>
<p class="mk-cta"><a href="/business/contact/">Business Opportunities <span class="chev chev--link" aria-hidden="true"></span></a></p>
</article>
</section>
<section class="mk-developer">
<span class="hex hex--teal hex--lg" aria-hidden="true"><svg viewBox="0 0 24 24" width="34" height="34" focusable="false"><path d="M4 8 12 4l8 4v8l-8 4-8-4Z" fill="currentColor"/><path d="m10 10-2 2 2 2M14 10l2 2-2 2" fill="none" stroke="#ffffff" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round"/></svg></span>
<h2 class="mk-heading mk-heading--teal mk-heading--center">Developer</h2>
<p class="mk-body mk-body--center">We now support 14 popular coding languages. At our core, LeetCode is about developers. Our powerful development tools such as Playground help you test, debug and even write your own projects online.</p>
<div class="mk-playground">
<pre class="mk-playground__code" data-playground-code>{{ playground_snippets[0].code }}</pre>
<div class="mk-playground__side">
{# The captured mobile page collapses this list into a native select. #}
<label class="mk-playground__select">
<span class="visually-hidden">Playground sample</span>
<select data-playground-select>
{% for snippet in playground_snippets %}
<option value="{{ loop.index0 }}">{{ snippet.title }}</option>
{% endfor %}
</select>
</label>
<ul class="mk-playground__list" role="tablist" aria-label="Playground samples">
{% for snippet in playground_snippets %}
<li>
<button class="mk-playground__item{% if loop.first %} is-active{% endif %}" type="button" role="tab"
aria-selected="{{ 'true' if loop.first else 'false' }}" data-playground-tab="{{ loop.index0 }}">
<span class="mk-playground__glyph" aria-hidden="true"></></span>{{ snippet.title }}
</button>
</li>
{% endfor %}
</ul>
<p class="mk-cta mk-cta--tight"><a href="/playground/new/empty">Create Playground <span class="chev chev--link" aria-hidden="true"></span></a></p>
</div>
{% for snippet in playground_snippets %}
<template data-playground-source="{{ loop.index0 }}">{{ snippet.code }}</template>
{% endfor %}
</div>
</section>
<section class="mk-sf">
<span class="hex hex--red hex--lg" aria-hidden="true"><svg viewBox="0 0 24 24" width="34" height="34" focusable="false"><path d="M4 8 12 4l8 4v8l-8 4-8-4Z" fill="currentColor"/><path d="M7 14h10M9 14V10.5M15 14V10.5M9 11.5c1.5-2 4.5-2 6 0" fill="none" stroke="#ffffff" stroke-width="1.2" stroke-linecap="round"/></svg></span>
<h2 class="mk-heading mk-heading--red mk-heading--center">Made with <span class="heart" aria-hidden="true"></span><span class="visually-hidden">love</span> in SF</h2>
<p class="mk-body mk-body--center">At LeetCode, our mission is to help you improve yourself and land your dream job. We have a sizable repository of interview resources for many companies. In the past few years, our users have landed jobs at top companies around the world.</p>
</section>
<section class="mk-hiring">
<p class="mk-body mk-body--center">If you are passionate about tackling some of the most interesting problems around, we would love to hear from you.</p>
<p class="mk-cta mk-cta--center"><a href="/jobs/">Join Our Team <span class="chev chev--link" aria-hidden="true"></span></a></p>
</section>
{% endblock %}
{% block footer %}{{ ui.marketing_footer() }}{% endblock %}
{% block scripts %}<script src="/static/js/home.js" defer></script>{% endblock %}
|