Home · Blog · Technical and coding
Online coding assessment tips (HackerRank, CodeSignal)
Online assessments are often the first technical step, and they're scored automatically. No interviewer is watching, but the test cases are. Here's how these platforms work, how to manage the time, and how to avoid the mistakes that cost the most points.

In short
- Online assessments are usually scored by hidden test cases, so correctness on edge cases matters most.
- Read every question first, then solve in order of what you can finish.
- Submit a working simple solution early, then improve it if time allows.
- Practise on the same platform so the editor and input format feel familiar.
Practise this free: a mock interview for Coding round (algorithms), scored, with a stronger answer. 3 a month, no card.
Start a mock interviewAn online assessment (OA) is often the first technical step after you apply. You get a link, a time limit of 60 to 120 minutes, and two to four problems. There’s no interviewer, so there’s no partial credit for explaining your reasoning: the platform runs your code against test cases and counts what passes.
That makes OAs different from live interviews. Correctness, edge cases and time management matter more than communication.
How online assessments work
The common platforms are HackerRank, CodeSignal, Codility and CoderPad’s take-home mode. Details differ, but most share these features:
- Visible sample tests you can run, and hidden tests that decide your score.
- Partial points per test case passed.
- Time limits per assessment and sometimes per question.
- Proctoring in some tests: webcam, screen monitoring, or checks for pasted code and similar submissions.
- A score sent to the company, sometimes with your code for review.
Read the instructions at the start carefully. They tell you what’s allowed, whether you can go back to earlier questions and how the time works.
Before the test
- Practise on the same platform. HackerRank’s interview preparation kit and CodeSignal’s practice area let you get used to the editor, the input reading and the run button.
- Choose your language and know how to read input and print output in it quickly.
- Review the basics: arrays, strings, hash maps, sorting, two pointers, BFS and DFS. See data structures to know for interviews.
- Set up your space: quiet room, charger, stable connection, notifications off. Take the test when you’re fresh, not late at night.
Time strategy
- Read every question first (two to three minutes). Note which ones look easy.
- Solve the easiest first. Bank points early.
- Submit a working solution before optimising. A brute force often passes most small tests.
- Watch the clock. If you’ve spent twice the expected time on one question with no progress, move on.
- Come back to improve if there’s time left, re-running all tests after every change.
Hidden test cases: where points are lost
Hidden tests usually check the cases you didn’t think of. Before submitting, test:
- Empty input and a single element.
- Duplicates and all-equal values.
- Negative numbers and zero.
- Very large input, which catches solutions that are too slow (look at the constraints to know what complexity you need; our guide to big O notation helps).
- Very large numbers, which can overflow in some languages.
- Exact output format: spaces, line breaks, rounding.
A quick pre-submit routine:
“Run the samples. Add a custom test with an empty list. Add one with a single element. Add one with duplicates. Check the constraint: up to 100,000 elements, so my O(n squared) loop may time out; switch the inner search to a set. Run everything again. Submit.”
Reading input quickly
Many platforms give you input as text you must read and parse yourself, and that’s where nervous candidates lose the first ten minutes. Before the test, write a short template in your language for the usual formats: a single number, a line of space-separated numbers, a number n followed by n lines, and a grid of characters. Practise printing output in the expected format too, including lists printed on one line.
Other platforms give you a function signature to complete instead. In that case, don’t print anything extra: debug prints left in your code can make otherwise correct answers fail.
Assessments with multiple-choice or debugging questions
Some assessments mix coding with other formats: multiple-choice questions about complexity or language features, SQL tasks, or code with a bug to find. For multiple choice, eliminate clearly wrong answers first and don’t spend long on one question. For debugging tasks, run the code with the sample input, read the error or the wrong output carefully, and change one thing at a time.
If your solution times out
A “time limit exceeded” message on large tests means the approach is too slow, not wrong. Look for a nested loop you can replace with a hash map, repeated work you can store, or a sort that enables two pointers or binary search. Even if you can’t fix it, the smaller tests still count.
Mistakes to avoid
- Spending all the time on question one. Later questions are not always harder.
- Never submitting. An unsubmitted perfect solution scores zero.
- Ignoring the output format. Correct logic with a wrong format fails every test.
- Breaking the rules. If tools or other help aren’t allowed, don’t use them; platforms detect a lot, and it ends the process.
- Leaving early. Use remaining time to test edge cases.
After the assessment
Results usually arrive within a few days to two weeks. If you pass, the next step is often a live coding round or a pair programming session; see our live coding interview tips and how to pass a coding interview. Whatever the result, write down the problems you saw and practise them properly; similar ones come up again. Our LeetCode study plan helps you fill the gaps.
Ghostpilot’s Chrome extension works on HackerRank, LeetCode, CodeSignal, Codility and CoderPad pages for practice and for assessments where AI help is allowed; always check the rules of the test you’re taking. Our software engineer interview questions cover the rest of the process.
Prepare for the rounds after the test, free. Ghostpilot’s mock interviews ask the technical questions for your role and score how clearly you explain your solution.
3 mock interviews a month are free, with no card needed.
Start freeQuestions
How are HackerRank and CodeSignal tests scored?
Mainly by automated test cases, many of them hidden. Each passed test earns points. Some platforms also measure time taken, and companies may review your code or check it for plagiarism.
Should I submit a brute-force solution in an online assessment?
Yes, if you can't see the optimal one quickly. A brute force often passes the smaller test cases and earns partial points. Improve it afterwards if time allows.
Can I use Google during an online coding assessment?
It depends on the company's rules, which are usually stated at the start. Some allow documentation; many don't. Read the instructions and follow them, as tests may be monitored.
How do I prepare for a CodeSignal or HackerRank test?
Practise easy and medium problems on the same platform, timed, so you're used to the editor and input format. Review arrays, strings, hash maps, sorting and basic graphs.
Get live help in your next interview
Ghostpilot hears each question and shows an answer from your CV, in a small window above your call. Free to start: 2 live interviews and 3 mock interviews a month, no card needed.
Keep reading



