Online Assessment Prep: How to Pass Coding OAs (HackerRank, CodeSignal, Codility) in 2027
A practical guide to online assessment (OA) prep for software engineering jobs and internships: how coding OAs work on HackerRank, CodeSignal, Codility and LeetCode-style platforms, the problem patterns that show up most, how to manage the timer, a 2-week and 6-week practice plan with free problem sets, and a checklist for test day. Written for new grads, interns and experienced engineers who keep getting an OA link before any human interview.
Last reviewed: December 2026
Platforms change their formats. Always read your invitation email and the platform’s own candidate help pages first; they are the only authoritative source for your specific test.
Table of Contents
- What an online assessment is
- The main OA platforms compared
- What gets scored
- Patterns that show up most in coding OAs
- Time strategy: a 90-minute, 3-question OA
- The reading and edge-case checklist
- Language choice and a Python OA toolkit
- Input/output handling (stdin problems)
- Practice plans: 2 weeks and 6 weeks
- Free practice sets by pattern
- Non-coding OA sections
- Test-day checklist
- Rules, proctoring and integrity
- After the OA
- FAQ
- Where to go next
- Contributing
What an online assessment is
An online assessment is a timed, usually unsupervised (or automatically proctored) test you take on a platform before or instead of a first-round interview. Companies use them to filter large applicant pools, especially for internships and new-grad roles. A typical coding OA:
- has 1 to 4 problems in 60 to 120 minutes;
- runs your code against visible sample tests and hidden tests, including large inputs that catch slow solutions;
- may add multiple-choice questions (CS fundamentals, debugging, SQL), a work-style or behavioural survey, or a short written explanation of your approach;
- is scored automatically, and recruiters often see a score plus your code.
Unlike a live interview, nobody hears your reasoning. Passing hidden tests is almost everything. That changes how you should practise: correctness on edge cases and efficiency on big inputs matter more than elegant explanations.
The main OA platforms compared
| Platform | What it usually looks like | Distinctive features | Free practice |
|---|---|---|---|
| HackerRank | 2-4 coding problems, sometimes MCQs, SQL or a small project task | Many problems read from stdin and print to stdout; custom input box; partial credit per test case | Interview Preparation Kit, algorithms domain, Skills Certification; candidate help |
| CodeSignal | Commonly reported as 4 tasks in roughly 70 minutes with rising difficulty for standardised assessments; companies can also build their own | Function-signature problems; a numeric score some companies reuse across applications; some tests are “implementation” style (simulate a system step by step) | CodeSignal Learn |
| Codility | 1-3 tasks, often 60-120 minutes | Strong emphasis on correctness and performance tests; final score shown per task | Codility Lessons |
| LeetCode-style / company portals | Some companies host their own OA or use other vendors | Often feel like LeetCode Medium problems | LeetCode free problems, NeetCode practice |
| HackerEarth | Coding plus MCQs, common for campus hiring in some regions | Stdin/stdout style | Practice section |
| Aptitude and personality vendors (SHL and similar) | Numerical, logical and verbal reasoning, situational judgement | Often bundled with a coding test for large employers | Vendor sample tests |
Best pick for practice: HackerRank’s Interview Preparation Kit for stdin-style problems, plus LeetCode Mediums for patterns. If your invite says CodeSignal or Codility, spend the last few days on their own practice pages to get used to the editor.
What gets scored
| Factor | Typical weight | How to win it |
|---|---|---|
| Hidden test cases passed | Highest | Handle edge cases; test with your own inputs |
| Efficiency (large inputs) | High | Know your target complexity from the constraints |
| Time taken | Sometimes a tiebreaker | Finish, then double-check; do not rush to save minutes |
| Code quality | Sometimes reviewed by a human later | Clear names, small helper functions, no dead code |
| Integrity checks | Pass/fail | Do your own work (see rules) |
Constraints tell you the expected complexity:
| Input size n | Usually acceptable |
|---|---|
| n ≤ 10 | O(n!), O(2^n · n) brute force |
| n ≤ 20 | O(2^n) bitmask |
| n ≤ 500 | O(n^3) |
| n ≤ 5,000 | O(n^2) |
| n ≤ 10^5 - 10^6 | O(n log n) or O(n) |
| n ≤ 10^9 or more | O(log n) or O(1): math or binary search on the answer |
Python handles roughly 10^7 simple operations per second; budget accordingly.
Patterns that show up most in coding OAs
These are the patterns most frequently reported in public interview and OA experiences. They overlap heavily with interview patterns, with more emphasis on simulation and counting.
| Pattern | Signals in the problem | Practice (free LeetCode problems) |
|---|---|---|
| Hash map counting | “how many pairs”, “frequency”, “first unique” | Two Sum, Subarray Sum Equals K, Group Anagrams |
| Sorting + greedy | “minimum number of”, “schedule”, “assign” | Merge Intervals, Non-overlapping Intervals, Boats to Save People |
| Two pointers / sliding window | contiguous subarray or substring with a condition | Longest Substring Without Repeating Characters, Minimum Size Subarray Sum |
| Prefix sums | many range-sum queries | Range Sum Query - Immutable, Product of Array Except Self |
| Simulation / implementation | long statement, step-by-step rules, “after k operations” | Spiral Matrix, Game of Life, Design Underground System |
| String manipulation | parsing, formatting, encoding | String Compression, Decode String |
| Stack / monotonic stack | “next greater”, matching brackets | Valid Parentheses, Daily Temperatures |
| Binary search on the answer | “minimum capacity / speed / time so that…” | Koko Eating Bananas, Capacity To Ship Packages Within D Days |
| Heap | “k largest”, “process in order of priority” | Kth Largest Element in an Array, Task Scheduler |
| Grid BFS/DFS | islands, shortest path in a maze | Number of Islands, Rotting Oranges, Shortest Path in Binary Matrix |
| Graph / topological sort | dependencies, ordering | Course Schedule, Course Schedule II |
| 1-D / 2-D dynamic programming | “number of ways”, “minimum cost” | Coin Change, Unique Paths, Longest Increasing Subsequence |
| Math / modular arithmetic | “return the answer modulo 10^9 + 7” | Count Primes, Pow(x, n) |
OA-specific advice: expect at least one long, wordy “implementation” problem. These are rarely algorithmically hard; they punish misreading. Underline every rule and build a tiny example for each one before coding.
Time strategy: a 90-minute, 3-question OA
| Minutes | Action |
|---|---|
| 0-5 | Read all problems. Rank them by how confident you are, not by order. |
| 5-30 | Solve the easiest fully. Run the samples, then 3-4 inputs of your own. Submit. |
| 30-65 | Second problem. Get a correct brute force passing first, submit, then optimise. |
| 65-85 | Third problem. Aim for partial credit: brute force, or handle the small cases. |
| 85-90 | Re-run everything, make sure each problem has a submitted working version. |
Principles:
- A submitted brute force beats an unfinished optimal solution. Most platforms give partial credit per test case.
- Save working versions. Before a risky refactor, copy the passing version into a comment or keep it submitted.
- Timebox. If you are stuck for 15 minutes with no progress, move on and come back.
- Do not trust the samples alone. Samples are deliberately easy; hidden tests are not.
- Watch for the overall timer vs per-question timers. Some tests lock a question once you move on. Read the instructions.
The reading and edge-case checklist
Before coding, check:
- Input ranges: can values be negative, zero, or very large? Can the array be empty?
- Are there duplicates? Is the input sorted?
- 0-indexed or 1-indexed output?
- What should be returned if there is no answer (-1, empty list, “NO”)?
- Is the answer required modulo 10^9 + 7?
- Ties: which one to return (smallest index, lexicographically smallest)?
- Exact output format: spaces, newlines, trailing spaces, capitalisation.
Edge cases to test yourself, every time:
| Category | Try |
|---|---|
| Size | empty, one element, two elements, max size |
| Values | all equal, all negative, zeros, max int values |
| Order | already sorted, reverse sorted |
| Strings | empty string, one character, all same character, spaces |
| Graphs/grids | single cell, disconnected parts, no path |
Language choice and a Python OA toolkit
Use the language you are fastest and most accurate in. Python is the most common choice because it is short, has big integers and a strong standard library. Java and C++ are faster at runtime, which can matter on tight time limits.
| Python tool | OA use |
|---|---|
collections.Counter, defaultdict |
counting and grouping in one line |
collections.deque |
BFS queue with O(1) pops from the left |
heapq |
priority queues, top-k |
bisect |
binary search on sorted lists |
functools.cache / lru_cache |
memoised DP (docs) |
itertools (accumulate, combinations, permutations, product) |
prefix sums and brute-force enumeration (docs) |
sys.setrecursionlimit(10**6) |
deep DFS (or convert to an explicit stack) |
sys.stdin.readline / sys.stdin.buffer.read |
fast input on large tests |
Common Python OA pitfalls:
- Recursion depth: the default limit is 1000, so a DFS on a 10^5-node path crashes. Use an explicit stack.
list.pop(0)andx in listare O(n). Usedequeandset.- String building in a loop with
+=can be slow; collect pieces in a list and"".jointhem.
Input/output handling (stdin problems)
Many HackerRank-style problems give a blank editor that reads from stdin. A safe Python template:
import sys
def solve(n, arr):
# your logic
return sum(arr)
def main():
data = sys.stdin.buffer.read().split()
n = int(data[0])
arr = list(map(int, data[1:1 + n]))
print(solve(n, arr))
if __name__ == "__main__":
main()
Reading all tokens at once avoids most “wrong number of lines” bugs. Keep the solving logic in a function so you can test it with your own inputs quickly. When the platform provides a function stub instead, do not change its signature.
Practice plans: 2 weeks and 6 weeks
2-week sprint (you got an OA link and have ~2 hours a day)
| Days | Focus | Target |
|---|---|---|
| 1-2 | Arrays, hashing, prefix sums | 8 Easy/Medium problems |
| 3-4 | Two pointers, sliding window, sorting + greedy | 8 problems |
| 5-6 | Stacks, heaps, binary search on the answer | 8 problems |
| 7-8 | Grid BFS/DFS, topological sort | 6 problems |
| 9-10 | 1-D DP, simulation/implementation problems | 6 problems |
| 11-12 | Two full timed mock OAs (pick 3 unseen Mediums, 90 minutes) | Review every miss |
| 13 | Platform practice: the vendor named in your invite | Get comfortable with the editor and I/O |
| 14 | Light review of mistakes, rest | Sleep matters |
6-week plan (internship or new-grad season)
| Week | Focus |
|---|---|
| 1 | Hashing, arrays, strings, prefix sums |
| 2 | Two pointers, sliding window, sorting, greedy, intervals |
| 3 | Stacks, queues, heaps, binary search |
| 4 | Trees, graphs, BFS/DFS, topological sort, union-find |
| 5 | DP (1-D, 2-D, knapsack-style), backtracking |
| 6 | Timed mock OAs twice a week; simulation problems; vendor practice |
A good list to follow inside these plans is the Blind 75 or Grind 75, plus extra implementation problems from HackerRank.
Free practice sets by pattern
| Source | What it is good for |
|---|---|
| HackerRank Interview Preparation Kit | Topic-grouped problems in the same editor many OAs use |
| CodeSignal Learn | Practice paths on the CodeSignal editor |
| Codility Lessons | Short lessons with tasks scored for correctness and performance |
| NeetCode practice | LeetCode problems grouped by pattern with video solutions |
| CSES Problem Set | Classic algorithm problems with strict time limits |
| USACO Guide | Structured algorithm modules from beginner to advanced |
| AtCoder | Beginner Contests (ABC) for timed practice |
| Codeforces | Timed contests, good for speed under pressure |
Non-coding OA sections
| Section | What to expect | Prep |
|---|---|---|
| CS fundamentals MCQ | Complexity, data structures, OS, networking, OOP | Review a cheat sheet; Tech Interview Handbook |
| Debugging | Fix a buggy function | Read slowly; look for off-by-one, wrong comparison, missing return |
| SQL | Joins, GROUP BY, window functions | HackerRank SQL domain, LeetCode database problems |
| Work-style / personality survey | Statements to rate | Answer honestly and consistently; there is no trick |
| Written approach | Explain your solution in a few sentences | State the idea, complexity, edge cases |
| Aptitude (numerical, logical, verbal) | Timed reasoning puzzles | Vendor sample tests |
| Recorded video answers | Behavioural questions answered on camera | Prepare STAR stories; practise to a timer |
Test-day checklist
- Read the invite: platform, duration, number of questions, languages allowed, deadline, whether webcam or screen sharing is required.
- Do the platform’s sample test or environment check beforehand.
- Reliable internet, laptop plugged in, notifications off, quiet room.
- Scratch paper and a pen (if allowed).
- Pick your language before you start and keep a tested I/O template in your head.
- Start when you are fresh, not at midnight before the deadline.
- Read all questions first.
- Submit early working versions; improve after.
- Leave 5 minutes at the end to make sure every question has a submission.
Rules, proctoring and integrity
- Many OAs record your screen, webcam or keystrokes, detect tab switching, and compare code against other submissions. Read the rules on the start page; they vary by company.
- Do not use AI assistants, search or other people unless the test explicitly allows it. Plagiarism detection is common and a flag can end your candidacy, sometimes across multiple roles at that company.
- Looking up official language documentation is allowed on some tests and not others. If the rules do not say, assume it is not.
- You will need to explain your code in later interviews anyway. Write code you understand.
After the OA
- Results often take a few days to a few weeks. Silence is common; it is not always a rejection.
- Write down the problem types you saw (not verbatim statements) and practise those patterns.
- If you get the next round, revise your OA solutions: interviewers sometimes ask about them.
- Some companies let you reuse a standardised score (for example certain CodeSignal assessments) instead of retesting. Check with the recruiter.
FAQ
What is an online assessment in a job application? A timed, auto-graded test, usually coding problems, that a company sends after you apply and before interviews.
How hard are OA questions? Usually LeetCode Easy to Medium, with an occasional Hard. The difficulty often comes from time pressure and edge cases rather than advanced algorithms.
Can I pass if I don’t solve every question? Often yes. Cut-offs vary by company and by applicant pool. Partial credit from passing some hidden tests can still get you through.
How many LeetCode problems should I do before an OA? There is no magic number. 75-150 problems spread across all major patterns, done properly, covers most OAs.
What language is best for OAs? The one you are fastest in. Python is popular for brevity; C++ and Java help on very tight time limits.
Do companies see my code? Usually yes, alongside your score and test-case results.
Can I retake an OA? Policies vary. Many companies have a cool-down period (often months) before you can apply and test again for the same role type.
Are the OA questions leaked online? Do not rely on that. Companies rotate questions, and using leaked material can violate the test terms. Practise patterns instead.
Where to go next
- Core problem list with Python solutions: blind-75-leetcode-solutions.
- Get the OA in the first place: resume-for-software-engineers.
- Interview process guides: Tech Interview Handbook.
- Algorithm depth: USACO Guide and CSES.
Contributing
Corrections and additions are welcome. If a platform changes its format, open an issue with a link to the platform’s official page. Please do not submit verbatim OA questions from any company; describe patterns and link public practice problems instead.
If this helped you, a star helps others find it.
More free resources
Part of the Ralpberry Labs open-source collection. See also Top 100 Open Source.