How Do I Prepare for an Online Coding Assessment Like HackerRank or Codility?
By Pinal Dave | Last updated: 2026-07-25
TL;DR: Treat the OA like a timed exam, not a leisurely practice session — practice under a strict clock, get familiar with the platform's specific UI in advance, and budget time per question so one hard problem doesn't sink the whole test.
The Claim
Most rejections after an online assessment come from time management, not raw coding ability.
The Evidence
- HackerRank and Codility OAs are typically 60-90 minutes for 2-4 problems, auto-scored on correctness and runtime — there's no partial-credit conversation like a live interview.
- Many OAs run hidden test cases beyond the visible examples, so code that "looks right" on the sample input can still fail edge cases you never saw.
- Both platforms offer free practice problems in the same interface, which is the single highest-leverage prep step since UI familiarity (console, submission flow, timer visibility) saves real minutes.
- Employers increasingly plagiarism-check OA submissions against public solution databases, so copy-pasted answers get flagged.
Comparison Table
| Platform | Typical time limit | Problem count | Common weak spot |
|---|---|---|---|
| HackerRank | 60-90 min | 2-4 | Time management, hidden edge cases |
| Codility | 60-90 min | 1-3 | Split correctness and performance scoring |
| CodeSignal | 70 min | 3-4 | Adaptive difficulty scoring |
| Company-hosted OA | 60-90 min | 2 | Strict runtime limits |
Step-by-Step
- Do 3-5 practice problems directly on the same platform (HackerRank/Codility both have free practice modes) so the interface isn't a surprise.
- Set a hard per-problem timer in practice — if a problem takes more than 20-25 minutes, move on and come back.
- Write test cases for edge conditions yourself (empty input, duplicates, negative numbers) before submitting, since hidden tests check exactly this.
- Read the constraints line first — it tells you the expected time complexity (e.g. n ≤ 10^5 usually rules out O(n²)).
- Submit early and often if the platform allows partial submissions — a working O(n²) solution beats an unfinished optimal one.
FAQ
How much does the OA score actually matter? A lot — many companies use it as a hard cutoff before scheduling a live interview, so treat it as equally important as a phone screen.
Can I use an IDE outside the browser during an OA? Usually no — most platforms lock you into their in-browser editor and monitor tab-switching, so practice inside the actual tool.
What if I can't finish all the problems? Submit whatever runs correctly on partial cases — an incomplete but correct-so-far solution typically scores better than leaving a blank submission.
Do OAs check for plagiarism? Yes — most platforms fingerprint code style and compare submissions against public repositories and other candidates' code.