Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Online Assessment Strategy

OA Format

Most OAs have 2-4 sections:

  1. Coding (60-90 min): 2-4 problems, easy to hard
  2. MCQs (15-30 min): CS fundamentals, aptitude, output prediction
  3. Debugging (15-30 min): Find and fix bugs in given code
  4. SQL (15-30 min): Write queries (some companies)

Coding Round Strategy

Time Management (3-problem OA, 75 min)

  • Read all problems first (5 min)
  • Problem 1 (easy): 15 min — get it right, this is free points
  • Problem 2 (medium): 25 min — most impactful
  • Problem 3 (hard): 25 min — partial credit possible
  • Review: 5 min — check edge cases

Problem-Solving Approach

  1. Read carefully: Note constraints, input format, edge cases
  2. Think of brute force: State it, then optimize
  3. Plan before coding: Data structure + algorithm
  4. Code cleanly: Readable variable names, comments
  5. Test: Sample cases + edge cases (empty, single, max)

Common OA Patterns

PatternFrequencyKey Insight
Arrays/StringsVery commonTwo pointers, sliding window
HashMapVery commonCounting, lookup
BFS/DFSCommonGraph traversal
DPCommonOptimal substructure
Sorting + GreedyCommonSort first, then greedy
Binary SearchMediumOn answer space

MCQ Strategy

  • CS Fundamentals: OS (processes, threads, scheduling), DBMS (SQL, normalization), Networks (TCP/IP, HTTP)
  • Aptitude: Percentages, ratios, probability, logical reasoning
  • Output Prediction: Trace through code carefully
  • Time: ~1 min per question, skip and return to hard ones

Common Platforms

PlatformTips
HackerRankRead problem statements carefully, edge cases matter
CodeSignalArcade mode practice, time management crucial
HackerEarthSimilar to HackerRank, practice previous contests
AMCATAdaptive testing, can’t go back to previous questions
MettlMixed format, read instructions carefully

Practice Strategy

  1. LeetCode: 150-200 problems (Easy 30%, Medium 60%, Hard 10%)
  2. Company-specific: LeetCode tagged problems
  3. Timed practice: Simulate OA conditions
  4. Mock tests: Use platform mock tests
  5. Review: After each practice, review optimal solutions

Interview Questions

Q: How do you approach a problem you’ve never seen before? A: (1) Identify the pattern (array? graph? string?), (2) think of similar problems I’ve solved, (3) start with brute force, (4) identify the bottleneck, (5) consider better data structures (hash map, heap, stack), (6) test with examples.

Q: How do you handle time pressure in OAs? A: (1) Read all problems first, (2) start with the easiest, (3) don’t get stuck > 10 min on one problem, (4) get partial credit (brute force > no solution), (5) leave time for testing edge cases.

References