HackerRank Test vs CodePair: Format, Scoring & What to Expect
HackerRank is not one interview format, it is two, and they reward almost opposite behaviour. One is graded by a machine on hidden test cases with nobody watching. The other is graded by a person who mostly cares whether you explain yourself. Candidates who prepare for the wrong one lose points that had nothing to do with their ability.
| Detail | HackerRank Test (async OA) | CodePair / Interview (live) |
|---|---|---|
| Who is on the call | Nobody — timed solo browser test | Live engineer + shared IDE and video/audio |
| How it is scored | Automated points per passed hidden test case | Human rubric: problem solving, code quality, communication |
| Sample vs hidden cases | Visible samples verify input/output; hidden cases carry most points | Interviewer runs custom cases or discusses edge cases live |
| Monitoring | Tab-switch & paste logs, MOSS, optional webcam Proctor Mode | Live collaborator sees every keystroke in real time |
On this page
What is HackerRank, and how does a HackerRank test work?
HackerRank is a technical hiring platform. Companies use it for two things: to send candidates online coding assessments (HackerRank Tests) and to run live coding interviews (HackerRank Interview, the product long known as CodePair). According to HackerRank's own candidate FAQ, the test is typically the first screening step, and candidates who clear it qualify for a live interview on the same platform.
A test works like this: you open the link in the invitation email, fill in the login form, accept the honor code and start — the candidate FAQ says you do not need a HackerRank account for it. The login page shows the duration and the test format before you begin. Code runs in a built-in editor and compiler and is checked against test cases. Tests must be taken on a PC or laptop; phones and iPads are not supported. Rescheduling does not go through HackerRank — the hiring company controls the window.
HackerRank questions are not only algorithm puzzles. HackerRank lists Coding, Multiple Choice, Database (SQL), Front-End, Back-End and Full Stack projects, Data Science in Jupyter, DevOps tasks on a Linux machine, Code Review, Diagram, Whiteboard, Subjective and Complete Sentence. The test login page shows which of these your test contains.
Work out which round you were sent
Check the invitation. A Test or Assessment link with a duration attached and a window of several days to start is the automated one: you code alone against a timer, submissions run against test cases, no human present. A CodePair link scheduled for a specific time with a calendar invite is the live one: a shared editor, an interviewer on the call, for as long as the interviewer booked — HackerRank does not set a standard length. HackerRank's own help centre now calls this product HackerRank Interview; CodePair is the older name that many invitations and candidates still use.
If the email is ambiguous, ask the recruiter directly. It is a completely normal question and the answer changes how you should spend your preparation.
Some employers publish their own HackerRank details. Goldman Sachs lists each challenge and its time limit, covered in our Goldman Sachs HackerRank assessment guide, and JPMorganChase names HackerRank alongside HireVue in its candidate guidance, covered in JPMorgan HireVue and online assessment.
HackerRank sample test and practice questions
There is an official sample test, and it is worth ten minutes. On the login page of a real test invitation, the Instructions section has a Try Sample Test link: enter an email address, click Agree & Start, and you get the same environment with a trivial problem. HackerRank's sample problem is literally “print ‘hello world’ N times” — the point is not the problem but seeing how input arrives on stdin, where Run Code and Submit are, and how test-case results are shown. You can take the sample test more than once, but each attempt needs a different email address.
For live rounds, HackerRank's interview preparation checklist links sample interview pads for both the new and the legacy Interview experience, so you can see the editor, the call controls and the question tabs before the real thing. HackerRank suggests opening them in an incognito window.
For practice questions, HackerRank's public site has an Interview Preparation Kit: challenges grouped by topic — arrays, dictionaries and hash maps, sorting, string manipulation, greedy algorithms, search, dynamic programming, stacks and queues, graphs, trees, linked lists, recursion and backtracking. Your employer picks the questions in your actual test, so treat the kit as practice for the format and the topics rather than a preview.
How the automated assessment is actually scored
Your score is the proportion of hidden test cases that pass, usually weighted per problem. Several consequences follow, and they are not obvious:
- Partial credit is real. A brute-force solution that passes the small cases and times out on the large ones still scores. Submitting nothing scores zero. Always land something working before optimising.
- The hidden cases are where you lose. Empty input, a single element, all-equal elements, negative numbers, integer overflow on large inputs. Most lost points live here, not in the algorithm.
- Input parsing is graded too. The boilerplate that reads stdin is provided but not always correct for your edge cases, and a crash there scores the same as a wrong algorithm.
- The clock starts when you start the test, not when you received the invitation, and HackerRank says it does not pause for technical issues. Start when you are ready to work, not to peek.
A practical order: read every problem first, solve the one you are surest of, get it passing, then move on. Coming back to optimise is cheap; running out of time with three half-finished problems is not.
Codility grades the same way, with a separate performance score on top for large inputs — here is how a Codility test is scored.
HackerRank CodePair: how the live interview works
A CodePair round — now HackerRank Interview — is a shared coding pad plus a call. You click the link from the hiring company; the page checks your browser, window size and device, asks for your name and email, and shows the Candidate Interview Guidelines. Then it asks for permissions, and these differ by version. In the new Interview experience you grant microphone and camera access, and screen-share access to the interviewer. In the legacy experience you grant microphone access — HackerRank's wording is “to record your audio for transcription” — and display access, which is used to detect how many screens are connected. Then you wait in a virtual lobby until the interviewer admits you.
Inside, you and the interviewer edit the same code in real time. The legacy pad supports more than 58 languages, with Run Code for your own input and Run Tests for the question's predefined test cases; REPL languages such as Python, JavaScript and Ruby also get a console. Audio and video run inside the pad (powered by Zoom, no Zoom account needed), and either side can share a screen once the video call has started. Interviewers can add several questions as tabs — coding, front-end, back-end, database, whiteboard, code repositories.
During the round the interviewer sees a presence indicator, an Observer Mode that follows your activity, an internet-quality indicator for both sides, and an “Out of Interview” label when you leave the pad. If the company turned on Interview Integrity Signals, the interviewer gets a grouped alert when there is a cluster of suspicious activity — repeated pastes from outside, frequent window resizing, switching tabs, or (in Chrome, with display access) an extra monitor — and may ask you to share your screen.
Afterwards the company gets a report. In the new experience it includes a recording of the whole interview and, per question, a code playback of your activity, the I/O console and any AI Assistant conversation. The interviewer fills in a private scorecard: by default the skills are Problem Solving, Technical Communication, Code Quality, Language Proficiency and System Design, each rated from “strong no” to “strong yes”. HackerRank does not send the report or the result to candidates — the company decides what to tell you.
What CodePair grades instead
In the live round the passing test cases matter far less than most candidates assume. The interviewer is filling in a rubric on problem solving, communication, and how you handle a hint. A candidate who reaches a clean O(n log n) in silence often scores below one who talks through a slower solution, spots its weakness, and improves it on camera.
So the strategy inverts: restate the problem, say your approach before typing, narrate while you write, and when you are stuck say what you are stuck on. Silence is the single most expensive habit in this format, because the interviewer can only grade what reaches them. The same applies to a shorter first call: see what a technical phone screen decides.
The environment is not your editor
The HackerRank editor is deliberately plain. Depending on configuration you may have limited autocomplete, no language server, no import suggestions, and no debugger — just run and print. Engineers who lean on their IDE feel this hard: half-remembered standard library signatures that autocomplete normally fills in are suddenly a real cost.
Two cheap defences. Practise a handful of problems in a plain editor before the round so the absence is not a surprise. And know your language’s core collection API cold — the map, set, sort-with-comparator and string-split calls you will reach for in almost every problem.
The language you pick changes the timing problem
HackerRank's execution environment page lists default time limits per language: 2 seconds for C and C++, 4 seconds for Java, 10 seconds for Python 3 and Ruby. Interpreted languages already get more time, but the multiplier does not always cover the gap, so the same correct algorithm can pass in C++ or Java and still time out in Python purely on constant factors.
If you are writing Python, two habits pay for themselves: read input with sys.stdin rather than input() in a loop, and reach for the standard library rather than hand-rolled loops, because the library runs in C. If you see a tight limit against a large input bound, that is the signal to pick the faster language if you are comfortable in it — a working C++ solution beats an elegant Python one that times out at 80% of cases.
What the recruiter actually receives
When the assessment closes, the employer sees a report rather than just a number: your score per question, which test cases passed, how long you spent and your submission history, including earlier attempts. Copy-paste tracking and tab tracking are built in and on by default, and the report includes a code playback. If the employer added Proctor Mode — a paid add-on — there is also a session replay with periodic screenshots, webcam checks and an overall integrity rating.
Two things follow. First, an early brute-force submission that you later improved is visible as progress, not as a failure, so submitting something working early costs you nothing and protects you against running out of time. Second, a single paste of a complete solution into an empty editor is conspicuous in a way that steady typing is not.
If it goes badly: retakes and reapplying
An assessment link is normally single-use, and there is no retake unless the employer sends a new invitation; when they do, HackerRank deletes your previous report. The timer does not pause for technical issues, so if something verifiably broke, one polite email to the recruiter is worth it — HackerRank lets employers add extra time or reinvite you. Scores are tied to the employer, so a poor result with one company does not follow you to another.
Many companies also apply a cooling-off period before you can reapply. Its length is each company's own policy, not something HackerRank sets, so check the careers page or ask the recruiter. Either way, treating the attempt as practice rather than as a verdict is the healthier reading.
What HackerRank tracks on every test
Some monitoring is on for every HackerRank test, with no setup by the employer. According to HackerRank's Test Integrity article:
- Copy and paste. Each copy or paste is recorded and the pasted content appears in the report (for coding, subjective and sentence-completion questions). The recruiter sees the copied text on a timeline, and the CSV export has a copy-paste frequency column.
- Leaving the test window. Tab proctoring records how often and for how long you leave the test window — “Number of Window Exits” and “Out of Window Duration” in the report.
- Code similarity. The MOSS check compares your code with other submissions in HackerRank's database, and the candidate help centre adds that plagiarism detection also looks for code copied from the internet and for the same logic with renamed variables or a changed structure. Plagiarism results are not shared with candidates.
- Your submissions and timing — score per question, passed test cases, time spent, submission history and code playback, as described above.
HackerRank's candidate guidance lists as malpractice: copying code from books or websites, help from another person, a solution that closely matches another candidate's, exiting full-screen mode and switching tabs. It warns that malpractice can be captured in the test report and lead to disqualification from later rounds.
To compare these signals with CoderPad, CodeSignal, Codility and Karat, see what interview platforms actually log. For the recorded, rubric-scored live round run by outside interviewers, see what to expect in a Karat interview.
Does HackerRank record your screen, audio or webcam?
It depends on the integrity mode the employer chose, and HackerRank says the invitation email tells you if a test is proctored. Item by item:
- Screen. On a standard test or in Secure Mode HackerRank's documentation describes tab and paste tracking, not capture of your screen. In Proctor Mode (a paid AI add-on) you must share your entire screen: HackerRank takes a screenshot every 15 seconds, every 5 seconds around suspicious events such as switching windows or leaving full screen, and the employer gets a session replay — a video-style recording of the test session across the full browser screen. The HackerRank Desktop App asks for screen-recording permission on macOS and screen sharing on both Windows and Mac.
- Webcam. Only if the employer enables it. Image Proctoring is off by default; when on, it requires your webcam, checks that your face is visible before the test starts and captures images at regular intervals into the report. Image Analysis uses AI to flag frames with multiple faces, a different face, no face or a static photo. Proctor Mode adds continuous webcam monitoring with images every 5 seconds, detection of phones and tablets in the frame and — in limited availability — gaze detection for repeatedly looking away and back.
- Audio. None of the HackerRank test-integrity articles we read — Test Integrity, Secure Mode, Proctor Mode, Desktop App Mode, Image Proctoring — lists microphone or audio capture for tests; the webcam features are described as images. Live interviews are different: there is a call with audio, the legacy interview asks for microphone access “to record your audio for transcription”, and the new interview report includes a recording of the whole interview.
Secure Mode sits in the middle: it enforces full screen, blocks copy and paste, allows only one monitor and warns you on a tab switch, but it does not use the webcam or screen sharing. Desktop App Mode is the strictest: it closes other applications — HackerRank names Cluely, video-conferencing, messaging and LLM apps — blocks screenshots, remote access and virtual machines, and keeps the test full screen until you finish. Proctor Mode and Desktop App Mode end with an integrity result of High or Medium, which the employer reviews next to the replay.
AI on HackerRank: the employer's rules, and what is recorded
There is no single HackerRank rule on AI — the employer sets it per test or interview. Some tests include HackerRank's own AI Assistant as a panel in the editor; the onboarding instructions say so before you start, and if you do not see the panel, AI is not part of that test. In guarded mode it helps with syntax, errors, the platform and concepts but does not write complete solutions; in unguarded mode it works like a modern AI coding tool, with plan, ask and agent modes, inline completions and a choice of models. HackerRank says using it does not affect your score, but the conversation is recorded and shown to the evaluator. In live interviews the interviewer can watch your AI Assistant use in real time, and the report includes your prompts and its responses.
Outside that panel, the platform is built to notice outside help. Pastes are logged on every test; Proctor Mode uses a model to look through screenshots for external AI coding assistants, answer-sharing sites, overlay apps and collaboration tools; the Desktop App closes them. The honest reading: read the invitation and the instructions, use what the employer allows, and assume anything else will be visible in the report. Understanding a question quickly is a different activity from submitting code you cannot explain, and a flagged submission is normally the end of the process with that company. If the rules are unclear, ask the recruiter before the test — it is a normal question, and the answer is the employer's to give.
For a signal-by-signal breakdown of how HackerRank flags AI-written code (MOSS similarity, its AI plagiarism model, Secure Mode and Proctor Mode), see Can HackerRank detect AI? If another company sent a CodeSignal link, CodeSignal vs HackerRank compares the two formats.
A checklist for the day
- Confirm which format you were sent, and the duration.
- Wired headphones and a quiet room if it is CodePair; a stable connection either way.
- Read all problems before writing anything.
- Working beats elegant — submit something that passes, then improve.
- Before each submit: empty input, one element, duplicates, very large input.
- In CodePair, keep talking; in the assessment, keep an eye on the clock.
Sources
HackerRank keeps two help centres: the Knowledge Base for employers and the Candidate Knowledge Base.
- HackerRank Candidates — Frequently Asked Questions Before the Test (sample test, proctored tests, devices)
- HackerRank Candidates — Question Types in HackerRank Tests
- HackerRank Candidates — Sample Problem Statement & Solutions
- HackerRank Candidates — Test Integrity and Plagiarism Detection
- HackerRank Candidates — AI Assistant in Tests
- HackerRank Candidates — Attempting Tests using HackerRank Desktop App
- HackerRank Candidates — Introduction to HackerRank Interviews (joining, permissions)
- HackerRank Candidates — Interview Preparation Checklist
- HackerRank Candidates — AI Assistant in Interview
- HackerRank Candidates — Evaluation Method of HackerRank Interviews
- HackerRank Candidates — Results of your HackerRank Interviews
- HackerRank Knowledge Base — HackerRank Test Integrity
- HackerRank Knowledge Base — Secure Mode
- HackerRank Knowledge Base — Proctor Mode
- HackerRank Knowledge Base — HackerRank Desktop App Mode
- HackerRank Knowledge Base — Image Proctoring and Image Analysis
- HackerRank Knowledge Base — Introduction to HackerRank Interview
- HackerRank Knowledge Base — Audio and Video Calls in Interviews
- HackerRank Knowledge Base — Interview Integrity Signals
- HackerRank Knowledge Base — Interview Report (new Interview experience)
- HackerRank — Interview Preparation Kit
- HackerRank Support — Execution Environment (time and memory limits per language)
- HackerRank Knowledge Base — Plagiarism Detection Using MOSS
- HackerRank Knowledge Base — Plagiarism Best Practices Guide
- HackerRank Knowledge Base — Extend Test Duration for Candidates
- HackerRank Knowledge Base — Reinvite Candidates to a Test
The sections on what HackerRank is, the sample test, CodePair, tracking, recording and AI were checked against these official pages on 27 October 2026; the scoring, time-limit and retake facts on 14 October 2026. Vendors change their rules, so check again before your test.
FAQ
What is the difference between a HackerRank Test and CodePair?
A Test (or Assessment) is the automated round: you code alone against a timer and hidden test cases, with nobody watching. CodePair is the live round: a shared editor with an interviewer on the call, for as long as the interviewer booked (HackerRank now calls the product HackerRank Interview). The invitation tells you which one — a link with a duration and a multi-day window is the automated test; a calendar invite for a specific time is CodePair.
Does HackerRank give partial credit?
Yes. Your score on each problem is the share of hidden test cases that pass, so a brute-force solution that clears the small cases and times out on the large ones still scores. Submitting something that works beats leaving the editor empty while you look for the optimal approach.
Does HackerRank detect tab switching or copied code?
Copy-paste tracking and tab tracking are built in and on by default, and the MOSS similarity check compares your code with other submissions in HackerRank's database. Employers can also turn on Secure Mode (full screen, copy-paste blocked) or the paid Proctor Mode (webcam, screenshots, session replay). Flags go to a human for review — nothing fails you automatically — but the summary sits next to your result.
How long is a HackerRank assessment?
HackerRank does not publish a standard length: the employer sets the duration and the number of questions, and you see both before you start. Once you start, one timer covers the whole test and it does not pause for technical issues, so budget per problem in advance — most lost points come from over-spending on one question, not from being unable to solve it.
Why does my solution pass the sample cases but fail the hidden ones?
The samples only demonstrate the input format. The hidden set deliberately probes boundaries: empty input, one element, all-equal values, already-sorted input, the maximum size in the constraints, and values near the integer limit. Test those six by hand before every submit.
Can I retake a HackerRank assessment?
Normally no — the link is single-use and a retake needs a new invitation from the employer, which replaces your previous report. HackerRank lets employers add extra time or reinvite a candidate, so if something verifiably broke on the day, it is worth emailing the recruiter.
Does the language I choose affect whether I time out?
It can. HackerRank's default limits are set per language — 2 seconds for C and C++, 4 for Java, 10 for Python 3 — so Python already gets more time, but on a tight problem the same algorithm can still pass in C++ and time out in Python on constant factors. Reading input via sys.stdin and leaning on the standard library both help.
What is HackerRank?
A technical hiring platform. Companies use it to send online coding assessments (HackerRank Tests) and to run live coding interviews (HackerRank Interview, formerly CodePair). According to HackerRank, the test is typically the first screening step, and candidates who clear it qualify for a live interview on the same platform.
Does HackerRank record your screen?
Not on a standard test: HackerRank logs pastes and how often and how long you leave the test window, but its documentation describes no capture of your screen. If the employer turns on Proctor Mode, you must share your entire screen; HackerRank takes a screenshot every 15 seconds (every 5 seconds around suspicious events) and the employer gets a session replay. The invitation tells you if a test is proctored.
Does HackerRank record audio or use your webcam?
On tests, HackerRank's integrity documentation describes webcam images, not audio. The webcam is used only if the employer enables it — Image Proctoring captures periodic images, and Proctor Mode adds AI checks for no face, multiple faces or a phone in view. Live interviews are different: they have an audio and video call, and the new interview report includes a recording of the interview.
Is a HackerRank test proctored?
Only if the employer turns proctoring on, and HackerRank says the invitation email tells you. Every test logs pastes and tab switches; proctoring adds webcam images (Image Proctoring) or, in Proctor Mode, webcam, screen sharing and an AI-reviewed session replay. A proctored test needs a computer with a working webcam.
How does HackerRank CodePair work?
CodePair, now called HackerRank Interview, is a live round. You join from a link, grant microphone, camera and screen-share or display access, wait in a virtual lobby, and then code in a shared editor with the interviewer on a built-in call, running code and tests in the pad. Afterwards the company gets a report with code playback and the interviewer's private scorecard; HackerRank does not send results to candidates.
Is there a HackerRank sample test?
Yes. The login page of a real test invitation has a Try Sample Test link in the Instructions section. It opens the same environment with a simple problem, so you can learn the input format and the buttons before the real test. You can repeat it, using a different email address each time. For live rounds, HackerRank's candidate help links sample interview pads.
What does HackerRank track during a test?
On every test: copy and paste (including the pasted text), how often and how long you leave the test window, code similarity with other submissions, and your submissions and timing. Depending on the employer, also Secure Mode (full screen, paste blocked, one monitor), webcam images, or Proctor Mode with screen sharing, screenshots, AI webcam analysis and a session replay.
Can you use AI on a HackerRank test?
Only if the employer allows it. Some tests and interviews include HackerRank's own AI Assistant, and its conversation is recorded and shown to the evaluator. Outside that, pastes are logged and Proctor Mode screenshots are analysed for external AI tools, so follow the instructions and ask the recruiter if the rules are unclear.
More guides
How the app helps here
Related articles
Read next
Use cases
Interview Copilot is a desktop app
It's a desktop app for macOS, Windows and Linux — a phone cannot capture the interviewer's audio or hide a window from screen share. Open this page on your computer to install it.
And during the interview this phone can be your screen: scan the QR code in the laptop app and the answers appear right here. How phone mode works →