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, What It Records, and How to Practice
HackerRank is a browser-based coding-assessment platform that tests algorithms, SQL, and role-specific skills, and records every keystroke, paste, and tab-focus change inside its own tab. As of the 2026 hiring cycle it is still the volume leader in first-round technical screens. The way through it is recognizing the problem shapes it keeps asking, under a timer, and taking the test yourself.
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 to prepare for 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. Many tenants record and transcribe interviews by default, which changes how you should prepare versus Zoom. This is the candidate-side guide to running a Teams interview in 2026.