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:
- 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.
- 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:
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 nopackageline. - 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:
- The sample test on your test's login page (you can retake it with a different email) and HackerRank's public sample test. Take it before the real thing so the editor, Run button and test-case panel are familiar.
- Preparation kits: the Interview Preparation Kit is organized by topic (arrays, hash maps, sorting, strings, greedy, search, dynamic programming, stacks and queues, graphs, trees, linked lists, recursion). The 1 Week, 1 Month and 3 Months kits have 21, 54 and 104 challenges.
- AI mock interviews: HackerRank Community includes one free coding mock interview and one free technical screen. More cost credits.
Interview Cake practice, mapped to the topics HackerRank tests most often:
| Topic | Learn | Practice |
|---|---|---|
| Arrays and strings | Array and string questions | Merge Sorted Arrays, Reverse Words |
| Hash maps | Hash maps | Inflight Entertainment, Word Cloud Data |
| Sorting and search | Sorting and binary search questions | Top Scores, Find Rotation Point |
| Greedy | Greedy algorithms | Apple Stocks, Highest Product of 3 |
| Stacks and queues | Stack and queue questions | Bracket Validator, Largest Stack |
| Trees and graphs | Tree and graph questions | BST Checker, Binary Tree Levels |
| Dynamic programming | Dynamic programming | Making Change, The Cake Thief |
| Linked lists | Linked list questions | Reverse a Linked List |
| SQL | SQL interview questions | Joins, GROUP BY with HAVING, window functions |
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.
Interview Cake