Under US copyright law, the code you write for a take-home assignment is almost certainly yours. You are not the company's employee, nobody signed an assignment, and software is not one of the categories that can be commissioned as a work made for hire. The default rule leaves the copyright with the person who typed it.
That answer matters less than it sounds, because ownership is not the clause that decides anything. What decides what happens to your submission is the licence you granted when you clicked through a platform's terms, and the brief the employer sent you. On one widely used platform, the terms concede ownership in one sentence and then take a perpetual, sublicensable, royalty-free licence covering derivative works and AI model training in the next.
This article covers US copyright as it applies to unproctored take-homes and submitted assessment code, what four platforms' published terms actually say, and the separate question of whether you can publish the thing afterwards. Terms were read on 17 November 2026. It is a candidate-side reading of statute and published terms, not legal advice.
Why the default rule favours you
Copyright starts with the author. 17 U.S.C. § 201(a) states that "Copyright in a work protected under this title vests initially in the author or authors of the work" (17 U.S.C. § 201). For a take-home, the author is you.
The doctrine that moves authorship to a company is work made for hire, and it has exactly two routes. The first is "a work prepared by an employee within the scope of his or her employment." A candidate doing an assignment before an offer is not an employee of that company, so this route is closed.
The second route is narrower than most people assume. It covers a work "specially ordered or commissioned for use" as one of nine enumerated things, and the US Copyright Office lists them: as a contribution to a collective work, as a part of a motion picture or other audiovisual work, as a translation, as a supplementary work, as a compilation, as an instructional text, as a test, as answer material for a test, or as an atlas (Copyright Office, Circular 30). Computer software is not on that list. The Circular states the consequence plainly: "If a work fails to satisfy any of these requirements, it is not a work made for hire."
That leaves assignment, and assignment has a formality requirement. Section 204(a) provides that "A transfer of copyright ownership, other than by operation of law, is not valid unless an instrument of conveyance, or a note or memorandum of the transfer, is in writing and signed by the owner of the rights conveyed" (17 U.S.C. § 204). Absent something you signed, the copyright did not move.
A caution on that last point. Whether a particular click-through acceptance counts as a signed writing under § 204(a) is a contested, fact-specific question, and it is precisely the sort of question a licensed lawyer answers rather than a blog post. Assume the formality can be satisfied electronically and read what you are accepting.
The clause that actually governs your submission
Ownership is the headline. The licence is the mechanism. Here is what four platforms' published terms say, read on 17 November 2026.
| Platform | Says you own your submission? | Licence taken | Granted by | AI training named |
|---|---|---|---|---|
| HackerRank | Yes, expressly | Perpetual, royalty-free, sublicensable, transferable; includes derivative works | You, to HackerRank | Yes |
| Codility | Not stated for candidate submissions | Non-exclusive, royalty-free, sublicensable | The employer, over data including candidate-created material | No |
| LeetCode | No; terms claim the content | Perpetual, irrevocable, royalty-free; includes commercial exploitation | You, to LeetCode | No |
| CodeSubmit | Silent | None stated for submissions | — | No |
The conclusion does not depend on the table. Three of the four platforms take a licence broad enough that ownership stops being the operative fact, and the fourth says nothing at all, which hands the question to the employer's brief.
HackerRank concedes ownership and takes the licence
HackerRank's Community and Candidate Terms of Service separate the two cleanly. Section 5.1 states: "As between you and HackerRank, you own all rights in and to all your Content." Content is defined to include code and submissions.
Section 5.2 then grants HackerRank "a perpetual, nonexclusive, royalty-free, fully paid up, sublicensable, transferable right and license" to, among other things, "use, process, copy, reproduce, create derivative works of, distribute, modify, and display your Content." The same section extends to permitting third parties to use your Content "for the purpose of training, developing, or testing artificial intelligence, machine learning models," and records that "any use of your Content as permitted by these Terms is made without any compensation paid to you" (HackerRank Community and Candidate Terms of Service). The page carries no effective date; its footer reads "© HackerRank 2025."
Two details are worth separating. The licence runs to HackerRank, not to the hiring company — the employer's rights come from its own contract and its own brief. And the training permission here sits in the terms you accepted as a candidate, which is a different document from the no-training commitments HackerRank makes to its paying customers. Those commitments, and how five other platforms handle the same question, are the subject of which hiring platforms train AI models on your interview.
Codility routes the licence through the employer
Codility's Terms of Service, last updated 15 September 2026, define "Candidate Data" as "all code, text, answers and other data and information submitted or created by a Candidate when using the Services." Separately, "Customer Data" is defined to include materials created by "your Users or Candidates."
Section 7.2 tells the customer "You will retain all rights to Customer Data" and then takes from that customer a "worldwide, non-exclusive, royalty-free license" to "reproduce, adapt, modify, publish and distribute such Customer Data solely in conjunction with the Services" (Codility Terms of Service).
Read as written, the party granting rights over material you created is the employer, not you. The reasonable inference — and it is an inference, not something the document states — is that a candidate is outside the clause that governs their own submission. Codility's terms also reference a separate Candidate Terms of Service that candidates accept before using the Services, which is the document that would say otherwise and which was not reviewed here.
LeetCode's terms claim the content outright
LeetCode is the contrast case. Its Terms of Service, last modified 04/05/2024, define Content to include "questions, communications, solutions, and any related material," and then state: "You agree that all Content is our sole and exclusive property." The user-submitted-content licence is "worldwide, non-exclusive, royalty-free, perpetual, and irrevocable," extends "to commercially exploit all such User Submitted Content" "without restriction or compensation to you," and survives deletion: "this right will persist even if your User Submitted Content is subsequently removed by you" (LeetCode Terms of Service).
Nothing on that page says the user retains ownership. If you have been posting solutions to a practice platform for years on the assumption that they remain yours to license elsewhere, that assumption is worth rechecking against the terms you accepted.
CodeSubmit's silence sends you back to the brief
CodeSubmit's terms, last updated 23 April 2026, carve user material out of the company's IP clause — the exclusive-property clause excludes "Content provided by users" — and say nothing about ownership or licensing of candidate submissions. Its privacy policy, same date, places control elsewhere: "When a hiring organization uses CodeSubmit to run assessments, that organization controls the candidate data collected in the hiring process."
Silence is not a promise in either direction. It means the default copyright rule applies, and that whatever the employer put in its own assignment brief is the document that matters.
The brief, not the platform, is where an assignment would live
Platform terms govern the platform. An actual transfer of your copyright, if one exists, will be in the employer's brief, the e-signature packet, or the repository README — and it will read like contract language rather than instructions: assignment of all right, title and interest; a work-made-for-hire recital with an assignment backstop; a confidentiality or non-disclosure clause.
Three things are worth doing before you write code, none of which require a confrontation:
- Read the brief for IP and confidentiality language, and ask if there is none. A one-line email — may I reuse or publish this work afterwards? — produces a written answer you can rely on later.
- Note whether the assignment produces something reusable. A generic rate limiter is portfolio material. An implementation against the company's internal API or proprietary data is not, whoever owns the copyright.
- Keep your own copy. If your submission goes in through a platform you lose access to, the artifact you might want for a portfolio is gone.
If the brief does contain an assignment clause, the honest position is that it probably works. Section 204(a) requires a signed writing, and a brief you countersign is a signed writing.
Publishing it is a separate question with a separate answer
None of the four terms documents reviewed here expressly prohibits a candidate from publishing their own solution. That is a narrower finding than it sounds, because the constraints on publishing come from elsewhere.
The employer's brief is the first. Confidentiality clauses in take-home briefs are common, and a confidentiality obligation restricts publication regardless of who owns the copyright.
The second is the detection corpus. Publicly posted code is one of the layers a submission is compared against, so publishing your solution makes it matchable — against the next candidate who finds it, and against you if you ever reuse it on the same platform. What a take-home plagiarism check actually compares covers what those engines compare and how long submissions are retained as corpus material. Related: HackerRank's section 2.1 requires that your answers "will be your own original material and will not be copied from or generated using any outside sources," which is the clause that bears on using somebody else's published solution rather than publishing your own.
The third is less obvious. When a take-home arrives as a repository you clone and push back, the artifact you publish carries commit metadata along with the code, and what your take-home repo's git history shows covers what that metadata exposes.
What this does not settle
This is US copyright law read against four sets of published terms on one day. Four limits are worth stating. Terms outside the US, particularly where moral rights apply, work differently. Employer briefs vary more than platform terms and were not sampled here. Whether an unpaid assignment is compensable work is a wage-and-hour question this article does not reach. And terms are revised without notice to candidates, so the quotations above should be rechecked against the live pages before anyone relies on them.
The practical conclusion
You keep the copyright in your take-home submission unless you signed it away. What you give up is a licence, and on at least one major platform that licence is perpetual, sublicensable, uncompensated, and expressly reaches model training. The decision that follows is not about ownership at all: it is whether the assignment in front of you is worth doing on those terms, and whether what you produce is something you can carry forward.
The more immediate question is usually what the assignment is actually grading, since that determines how you should approach it. Take-home coding assignments and the 2026 AI rules covers how to tell which of the two incompatible take-home designs landed in your inbox.
Comparing tools? See how Steady Interview compares with Cluely, Interview Coder, Final Round AI, and others, or the best real-time AI interview copilots.
Share
Explore with AI
Continue exploring
Related guides
Assessment Guides · 9 min read
What a Take-Home Plagiarism Check Actually Compares
Take-home code gets scanned for similarity and AI authorship. What the engines compare, what an 85% precision figure means, and where your submission ends up.
Assessment Guides · 8 min read
Asking for an Assessment Accommodation Before You Start
Who owes you an accommodation on a hiring coding assessment, what each platform can actually change, and why the request has to land before you click Start.
Assessment Guides · 7 min read
Can You Take a Coding Assessment in an AI Browser?
HackerRank, CodeSignal, and Codility approve Chrome and Edge. Both now ship AI assistants. What the browser check verifies, and what it does not.