The Control Journal
Assessment GuidesSeptember 10, 20265 min read

Does LeetCode Detect Cheating? Contest Rules in 2026

LeetCode runs a plagiarism checker on contest code, reviews flags by hand, and bans without warning: one month first, permanent second. What it catches and misses.

CControl Editorial Team

Yes, in contests, and only in contests. As of September 9, 2026, LeetCode documents "an official plagiarism checker" that compares contest submissions across accounts, a human review of every flag, a public Code Replay of each contestant's typing, and penalties applied "WITHOUT PRIOR WARNINGS": a one-month ban for a first violation and permanent deactivation for a second. Outside contests, LeetCode enforces nothing; its own Ask Leet assistant sits inside the practice editor. This article covers what the contest checker looks at, what the rules prohibit, and what a ban does.

What the rules prohibit

LeetCode's contest rules, updated September 26, 2024, list five violations: one user on multiple accounts, "Multiple accounts submitting similar code for the same problem," disrupting other participants, "Disclosing contest solutions in public discuss posts before the end of the contest," and external help. The last clause is the one that matters for AI: "The use of code generation tools or any external assistance for solving problems is strictly prohibited. This includes, but is not limited to, actions such as inputting problem statements, test cases, or solution code into external assistance tools."

Two things are explicitly not violations. Hardcoding test cases in an accepted submission draws no action, and precomputed results are valid if you include the code that generated them.

How detection works

LeetCode describes a two-stage process. The May 2024 fairness announcement states: "Our advanced cheating detection tool identifies similar codes, and we conduct manual reviews to confirm any dishonest behavior." The July 2024 follow-up explains the delay in rankings: "we review each cheating report flagged by our plagiarism detector one by one, with careful attention from human reviewers."

The primary signal is similarity between submissions. LeetCode does not publish how the checker normalizes code, what threshold it uses, or whether it compares against public solutions or AI output. It publishes no precision figure. Compare that with HackerRank, which states its plagiarism model's precision; the two vendors' approaches are set side by side in what happens when a coding assessment flags you.

Three supporting mechanisms exist.

Code Replay. The release notes added Code Replay in May 2025 so anyone can "replay your contest performance from the Contest Ranking," and in May 2026 added "editor activity status information." A reviewer, or another contestant, can watch how a solution arrived: typed incrementally, or pasted whole.

User reports. LeetCode's Help Center documents a "Report Cheating" button on every contest submission, requires a written reason, and states that "Every week, LeetCode's contest team reviews the violation report." The older violations article pays LeetCoins for valid reports.

Account identity. The May 2026 release notes describe "Improved phone number binding and two-factor authentication flows," and the terms of service let LeetCode require "proof of identity." Users reported in April 2026 that contest registration began asking for a phone number; LeetCode has not published a support article confirming that as a rule.

What a ban does

Penalties are fixed and stated in the same words across the rules and the announcement:

  • First violation: contest score reset to zero, LeetCoins reset to zero, contest and Discuss ban for one month.
  • Second violation: contest score reset to zero and "Permanent account deactivation without appeal."

The announcement adds that "the PENALTIES WILL NOT BE WAIVED FOR ANY REASON," but also that a mistaken ban can be raised with support: "If you think you were banned mistakenly, please reach out to the support team at [email protected]. We may ask you to present evidence or provide explanations."

Rankings are held until review finishes, often several days. New users are also sandboxed: the April 2026 rating rules score a first-timer's first five contests independently and keep them out of the global ranking, which limits what a throwaway account can do to other people's ratings.

What the checker does not see

The checker works on code. It has no documented view of your browser, your screen, your camera, or your other devices, and Code Replay covers the LeetCode editor only. Whether LeetCode tracks tab switching or copy-paste covers that boundary in detail.

The practical consequence is that LeetCode's detection catches shared and duplicated solutions well and catches independently generated ones only when they converge on the same code. It is not a proctoring system, and whether LeetCode is proctored at all is a separate question with a short answer.

What this means for candidates

In a rated contest, the rule is total: no external assistance of any kind, no AI, no pasting the problem anywhere. The detection is similarity plus a human, the replay is public, and the penalty comes without warning. If you use AI to study, do it on practice problems, where LeetCode itself provides an assistant, and keep contests clean. Employers who ask about your contest rating are looking at a number LeetCode has actively policed since 2024, so a ban is visible in the gap it leaves.

The full inventory of what each LeetCode surface records is in what LeetCode records across contests, Interview, and mock tests.

Continue exploring