← Back to Dashboard

LinkedIn Interview Questions

Curated from verified interview reports: a broad Coding + OA slate - trees, graphs, greedy placement, caching, and scheduling problems.

9 real interview questions reported from LinkedIn Software Engineer interviews (Coding, OA rounds): 1 easy, 5 medium, 3 hard. Each question shows its interview round and how often it was reported, and coding questions come with runnable tests.

LinkedIn Coding round questions (8)

  • Balanced Parentheses - Easy, free preview
    Validate that every opening parenthesis in a config string is matched in the correct order.
  • Closest Value Pair - Medium, free preview
    Pick one value from each sorted catalog so their absolute difference is as small as possible.
  • Combine N-ary Trees - Hard
    Merge two organization charts by summing overlapping headcounts and aligning children by index.
  • Daily Branch Pruning - Medium
    Group directories by the day they disappear when all current leaves are removed at once.
  • Dependency Task Executor - Medium
    Model a build pipeline that returns a valid dependency-respecting execution order or detects a cycle.
  • Distribution Center Placement - Medium
    Choose the candidate hub location that minimizes the total absolute shipping distance.
  • Priority Cache System - Hard
    Implement a fixed-capacity cache that evicts the lowest-priority item whenever it is full.
  • Words From Phone Number - Medium
    Generate every letter combination a phone number can represent using the standard keypad mapping.

LinkedIn OA round questions (1)