LinkedIn Coding Interview Questions
32 LinkedIn coding interview problems with full optimal solutions — 4 easy, 21 medium, 7 hard. Every problem ships with multiple approaches (brute-force first, then the optimal), complexity tables for each, company-specific tips on what an LinkedIn interviewer values, and a FAQ section.
Showing 4 problems of 32
- #20easyfoundational
20. Valid Parentheses
Determine whether a string of brackets is correctly matched using a stack — LinkedIn uses this as a 5-minute coding warm-up, often paired with a JSON or template-syntax validation scenario to tie the abstract stack to the profile-rendering pipeline that parses nested markup in member summaries.
- #1easyfoundational
1. Two Sum
Two Sum is LinkedIn's canonical 10-minute warm-up: given an integer array and a target, return the indices of the two numbers that add up to target. The interviewer is grading your willingness to narrate brute-force first, then move to the hash-map optimization.
4 free resourcesSolve → - #243easycompany favorite
243. Shortest Word Distance
Given an array of strings and two words, return the shortest distance between two indices where these words appear. LinkedIn asks this as the entry point to their signature Shortest Word Distance family — they want the single-pass O(n) solution with two index trackers.
4 free resourcesSolve → - #605easyfrequently asked
605. Can Place Flowers
Given a flowerbed (0s and 1s, no two adjacent 1s) and a number n, return whether you can plant n new flowers without breaking the no-adjacent rule. LinkedIn asks this as the greedy warm-up — they want clean per-cell checks with no boundary bugs.
4 free resourcesSolve →
Related interview-prep guides
HackerRank Tech Interview Guide 2026: What It Tests, How It Tracks You, and the Modern Setup
HackerRank is still the volume leader in first-round technical screens for 2026 tech hiring. A browser-sandboxed coding environment that logs every keystroke, paste event, and tab-focus change inside its own tab. This guide covers what it tests, the boundary of what it can and cannot detect, and how a modern desktop setup pairs with a HackerRank session without leaking into the screen-share.
Karat Technical Interview Guide 2026: How the Third-Party Loop Actually Works
Karat is technical-interview-as-a-service. Karat-employed engineers run the technical loop for the hiring company in Karat's own recorded video and coding environment. The dynamic is different from an in-house interview: the interviewer is a contractor, not a future teammate, the rubric is fixed, the session is recorded for asynchronous review, and the hiring team's engineers watch the playback a day later. This guide is the practical map of how that loop works in 2026 and how a modern desktop setup runs alongside it.
Microsoft Teams for Tech Interviews in 2026: The Complete Candidate Guide
Microsoft Teams is the default interview surface at any company running Office 365: Fortune 500, finance, healthcare, government tech, legacy enterprise. The recording-and-transcript reality changes the threat model versus Zoom, but the OS-level boundary that protects a modern desktop AI setup is the same. This is the candidate-side guide to running a Teams interview in 2026.