In short: A HackerRank test is a timed online assessment an employer sends you, mostly coding problems scored automatically by sample and hidden test cases, with partial credit for each case you pass. The employer sets the length, question types, proctoring and whether HackerRank's AI Assistant is on, while copy-paste and tab-switch tracking are always on. A HackerRank interview is different: a live, scheduled coding session with an interviewer.

HackerRank Test: What to Expect and How to Practice

The HackerRank online assessment and the live HackerRank interview: question types, scoring, proctoring, AI rules and practice

Updated December 2026

The HackerRank test at a glance

A HackerRank test is an online assessment an employer sends you through HackerRank, usually as the first screen after you apply. You open the link, log in, and answer timed questions in the browser: mostly coding problems that are scored automatically by test cases, sometimes with multiple-choice, SQL or project questions. The employer chooses the questions, the time limit, the languages, the proctoring and whether AI is allowed. So your invitation and the test's login page are the best guide to your test. A HackerRank interview is different: a live session with an engineer in a shared editor.

Length Set by the employer. Your invitation email and the test login page show it.
Questions Chosen by the employer: coding, multiple choice, SQL, front-end/back-end/full-stack projects, data science, DevOps, code review, written answers and more.
Languages HackerRank supports 61; the employer can limit each question to a few.
Scoring Coding: points for each test case your code passes, including hidden ones. Partial credit is normal.
Results Owned by the employer. HackerRank doesn't send you a report.
AI Allowed only if the employer turns on HackerRank's built-in AI Assistant, which you'll see as a panel in the editor. Otherwise, no.
Proctoring Copy-paste and tab-switch tracking are built in. Employers can add webcam snapshots, full-screen lockdown, AI proctoring or a desktop app.
Retakes Only if the employer agrees.
Device A laptop or desktop with a current Chrome, Firefox, Edge or Safari. No phones or tablets.

Everything here comes from HackerRank's candidate support site and employer docs, checked in December 2026, unless it says "candidates report."

HackerRank test vs. HackerRank interview

HackerRank test (online assessment) HackerRank interview (live)
Who's there Just you, on a timer You and one or more interviewers, on video
When Any time inside the window on your invitation A scheduled time
How it's judged Mostly automatic test-case scoring An interviewer scorecard
Practice link The sample test on your test's login page Sample interview

The live product used to be called CodePair; HackerRank renamed it Interview in 2020, so older posts use that name. According to HackerRank's interview guide, you join from a link, grant microphone, camera and screen-share access, and wait in a lobby until the interviewer admits you. Interviewers rate you from "strong yes" to "strong no" on skills such as Problem Solving, Technical Communication, Code Quality, Language Proficiency and System Design. You don't see the scorecard. Talk through your approach the way you would in any live round; our coding interview tips apply directly.

Some companies also send Chakra, HackerRank's AI interviewer. It runs a spoken interview by itself, with coding in between, and HackerRank publishes a Chakra FAQ for candidates.

What the HackerRank test looks like

Before you log in, the test page shows the duration and a Test format section with the number and types of questions. HackerRank's list of question types includes:

  • Coding: a single-file problem in a browser editor, the most common type. You either complete a given function or write a full program that reads input and prints output.
  • Multiple choice: one or more correct answers. By default each question is worth 5 points, and the employer can turn on negative marking for wrong answers (source).
  • Database (SQL): MySQL, Oracle, SQL Server or DB2. Your query's result either matches the expected answer or scores zero.
  • Debugging: employers often give you buggy code to fix. These are scored like coding questions. HackerRank also has a Code Review type, where you leave comments on a code change.
  • Project-based: front-end (React, Angular), back-end (Node.js, Django, Spring Boot, Rails), full-stack, mobile, DevOps and cloud tasks in a VS Code–style IDE. These are usually scored by unit tests.
  • Other types: data science in Jupyter, written (subjective) answers, diagrams and file uploads. These are often graded by hand.

Time limits come from the employer, and some tests have separately timed sections. HackerRank says you can't go back to a section after its time runs out. Orange and then red alerts appear as time runs low.

Test cases, hidden test cases and partial credit

Coding questions are graded by test cases: fixed inputs whose output must exactly match the expected output.

  • Sample test cases show the input and expected output, so you can understand the format. They may or may not carry points.
  • Hidden test cases (marked with a lock) cover edge cases, boundary values and large inputs. You see your own output but not the input or the expected answer, and some employers hide even your output.
  • Partial credit: your score is the sum of the points for the test cases you pass (source). Passing 7 of 10 earns those 7.
  • Time limits per run: each language has a maximum run time (HackerRank gives 10 seconds for Python and 2 seconds for C as examples). Slow code fails with "Terminated due to timeout."

"Run code" vs. "Submit"

Run code compiles your solution and runs it against the test cases or your own custom input. It doesn't affect your score, and you can run as often as you like. Submit (Save & Proceed in the newer interface) records your answer and moves on. You can come back and resubmit while the question is still open.

What counts if time runs out? According to HackerRank's time-out rules for coding questions:

  • If you submitted, your latest submitted code counts. Edits you made after that are ignored unless you resubmit.
  • If you ran your code but never submitted, the result of your latest run counts.
  • If you typed code but never ran or submitted it, it isn't evaluated.

So run early and submit every time your code gets better.

Input and output: STDIN and function signatures

HackerRank coding questions come in two shapes:

  1. Function stubs. The editor gives you a function signature to complete, plus read-only code above and below it that reads the input and prints whatever your function returns. Return the answer rather than printing it. Anything you print goes to the Debug Output panel and doesn't affect your score.
  2. Full programs. You read from standard input (STDIN) and write to standard output (STDOUT) yourself, in exactly the format the problem describes.

For full programs, the safest pattern is to read all of the input at once and split it on whitespace. That way it doesn't matter whether the numbers arrive on one line or many. Here's a program that reads n and then n integers, and prints their sum and their maximum on separate lines:

import sys def main(): # Read everything at once, then split on any whitespace, # so it doesn't matter how the numbers are spread across lines tokens = sys.stdin.read().split() n = int(tokens[0]) nums = [int(token) for token in tokens[1:1 + n]] print(sum(nums)) print(max(nums)) if __name__ == "__main__": main()

For the input 5, 3 1 4, 1 5 (on three lines), it prints 14 and then 5.

Gotchas from HackerRank's own FAQ:

  • In Java, C# and Scala, your main class must be named Solution, with no package line.
  • Switching languages resets the editor, so copy your code first.
  • "Wrong Answer" is often a formatting problem: an extra space, a missing newline or a leftover debug print.
  • Click Test against custom input (when the employer allows it) to try your own edge cases. Turn it off and re-run the real tests before you submit.

Proctoring: webcam, tab switching, copy-paste and plagiarism

HackerRank leaves proctoring to each employer, but some tracking is always on. HackerRank's test integrity docs say two features are built in by default:

  • Copy-paste tracking. What you copy and paste is recorded, and pasted content shows up in your report.
  • Tab tracking. The report shows how many times you left the test window and for how long.

Employers can add more:

  • Webcam snapshots and photo ID: periodic webcam pictures for the reviewer. Your invitation says if the test is proctored, and you'll need a computer with a webcam (source).
  • Secure Mode: forced full screen, warnings when you switch tabs, outside copy and paste blocked, and only one monitor allowed.
  • Proctor Mode: everything in Secure Mode, plus AI monitoring of your webcam (no face or several faces, phones or tablets in view), screen sharing with periodic screenshots, and flags for typing patterns that look like chatting with someone in the editor.
  • HackerRank Desktop App: a locked-down app for Windows or macOS that blocks other apps, browsers and tabs.

Plagiarism detection runs regardless. HackerRank's candidate page on test integrity says it flags code that matches other candidates' code, code copied from the internet, and copies disguised with renamed variables. It lists copying code from websites, getting help from someone, leaving full-screen mode and switching tabs as malpractice. Candidates don't see the plagiarism results, but recruiters do. HackerRank's campus-hiring FAQ sums it up: don't switch tabs, copy and paste, leave the webcam frame, or run screen-sharing apps.

AI on HackerRank: the AI Assistant in tests and interviews

In tests: outside AI tools count as unauthorized help unless your employer says otherwise. But an employer can switch on HackerRank's own AI Assistant. If it's on, the instructions say so before you start, and an AI panel appears in your editor. If there's no panel, AI isn't allowed. The assistant runs in one of two modes:

  • Guarded: help with syntax, the platform, errors and concepts, but no complete solutions.
  • Unguarded: works like a real AI coding tool, with a Plan mode, an Ask mode, an Agent mode that writes and edits code, inline completions, and a choice of several AI models.

HackerRank says using the assistant doesn't affect your score directly, but your whole conversation is recorded and shown to the person reviewing your test.

In live interviews (the "HackerRank AI-assisted interview"): the AI Assistant appears only if the company enables it. Your interviewer can watch your prompts and the AI's replies as they happen, and both go in the interview report. In HackerRank's new interview experience, coding questions get the guarded assistant. Code repository questions get an unguarded agent that can explore the codebase, plan, and edit files. You can switch between models, depending on what the company allows.

When AI is allowed, interviewers are watching how you use it: whether you break the problem down, check what the AI produces, test it, and can explain the final code. Our guide to AI-assisted coding interviews covers that workflow.

How to practice for a HackerRank test

HackerRank's own practice:

Interview Cake practice, mapped to the topics HackerRank tests most often:

A one-week routine: on day 1, take the sample test and learn your language's STDIN pattern from above. On days 2–5, do two topics a day from the table. Time each problem, then check it against edge cases (empty input, one element, duplicates, very large inputs). On day 6, do a full timed mock with problems you haven't seen, writing in a plain browser editor. Spend day 7 reviewing your misses and Big O, so you can spot which solutions will time out.

Test-day tips and common mistakes

  • Check your setup first. Run HackerRank's system compatibility check, use a stable connection, plug in, and close other apps. If the test is proctored, sit in a quiet, well-lit spot with only one monitor, and keep your phone out of view.
  • Start well before the deadline. You can't log in after the expiration time, and HackerRank can't extend it; only the employer can.
  • Read the constraints before you code. Hidden tests use large inputs, and a nested loop over 105 items will often time out.
  • Get a working solution first, submit it for partial credit, then optimize.
  • Match the output exactly, and remove debug prints before submitting a full program.
  • Don't log out mid-test. HackerRank says that ends your attempt. If your connection drops, the timer keeps running, but you can log back in and continue.
  • If something breaks, use Report a problem under the "?" icon and email your recruiter. Retakes are up to the employer.

If you're applying widely, you'll probably see other formats too. We have guides to the CodeSignal General Coding Assessment, CoderPad interviews and the Amazon online assessment.

Frequently Asked Questions

What is a HackerRank test?

An online assessment an employer sends through HackerRank, usually as the first screen after you apply. You answer timed questions in the browser: mostly coding problems graded by test cases, sometimes with multiple-choice, SQL or project questions.

How long is a HackerRank test?

The employer sets the length, so it varies by company and role. Your invitation email and the test's login page show the duration and the number and types of questions before you start.

Do hidden test cases count on a HackerRank test?

Yes. Your score on a coding question is the sum of the points for the test cases you pass, including hidden ones that check edge cases and large inputs. You can't see a hidden case's input or expected output, so test edge cases yourself.

Can HackerRank detect tab switching or copy-paste?

Yes. HackerRank tracks copy-paste and how often and how long you leave the test window by default, and the employer sees both in your report. Plagiarism detection also flags code that matches other candidates' code or code from the internet.

Does a HackerRank test use your webcam?

Only if the employer turns on webcam proctoring. Then the test takes periodic webcam snapshots and may ask for a photo ID, and your invitation says the test is proctored. Proctor Mode adds AI monitoring of your webcam and screen sharing.

Can you use AI on a HackerRank test?

Only if the employer turns on HackerRank's built-in AI Assistant, which appears as a panel in your editor; no panel means no AI. Outside AI tools count as unauthorized help unless the employer says otherwise, and AI Assistant conversations are recorded for the reviewer.

Can I retake a HackerRank test?

Only if the employer agrees. HackerRank can't reset or extend a test on its own, so if something went wrong, use Report a problem in the test and contact your recruiter.

What's the difference between a HackerRank test and a HackerRank interview?

A test is an online assessment you take alone on a timer, scored mostly by automatic test cases. A HackerRank interview (formerly CodePair) is a scheduled live video session where an interviewer watches you code and rates you on a scorecard.

Reviewed by Stephen Cognetta, CEO of Aced. Last updated: December 4, 2026

. . .