Linkedin Software Engineer Coding & Algorithms Interview Questions
Practice 33 real Coding & Algorithms interview questions for Software Engineer roles at Linkedin.

"10 years of experience but never worked at a top company. PracHub's senior-level questions helped me break into FAANG at 35. Age is just a number."

"I was skeptical about the 'real questions' claim, so I put it to the test. I searched for the exact question I got grilled on at my last Meta onsite... and it was right there. Word for word."

"Got a Google recruiter call on Monday, interview on Friday. Crammed PracHub for 4 days. Passed every round. This platform is a miracle worker."

"I've used LC, Glassdoor, and random Discords. Nothing comes close to the accuracy here. The questions are actually current — that's what got me. Felt like I had a cheat sheet during the interview."

"The solution quality is insane. It covers approach, edge cases, time complexity, follow-ups. Nothing else comes close."

"Legit the only resource you need. TC went from 180k -> 350k. Just memorize the top 50 for your target company and you're golden."

"PracHub Premium for one month cost me the price of two coffees a week. It landed me a $280K+ starting offer."

"Literally just signed a $600k offer. I only had 2 weeks to prep, so I focused entirely on the company-tagged lists here. If you're targeting L5+, don't overthink it."

"Coaches and bootcamp prep courses cost around $200-300 but PracHub Premium is actually less than a Netflix subscription. And it landed me a $178K offer."

"I honestly don't know how you guys gather so many real interview questions. It's almost scary. I walked into my Amazon loop and recognized 3 out of 4 problems from your database."

"Discovered PracHub 10 days before my interview. By day 5, I stopped being nervous. By interview day, I was actually excited to show what I knew."

"I recently cleared Uber interviews (strong hire in the design round) and all the questions were present in prachub."
"The search is what sold me. I typed in a really niche DP problem I got asked last year and it actually came up, full breakdown and everything. These guys are clearly updating it constantly."
Design a Randomized Multiset
Implement a data structure for integers that allows duplicate values and supports the following operations in expected O(1) time: - insert(val): Add o...
Design O(1) Randomized Multiset
Implement a randomized multiset data structure that allows duplicate values and supports the following operations in average constant time: - insert(v...
Design O(1) insert/delete and frequency-weighted random
Problem Design a data structure that supports the following operations in average \(O(1)\) time: 1. add(x) -> bool - Inserts value x into the colle...
Can You Place N Objects?
You are given a binary array slots representing a row of locations. 1 means the location is already occupied, and 0 means it is empty. You want to pla...
Process Mutable Matrix Sum Queries
You are given a 2D integer matrix and a list of queries. There are two query types: - set r c v: update the value at row r and column c to v - get r1 ...
Debug Queues and Solve Arrays
During the coding rounds, the interviewer asked several implementation problems: 1. Debug a priority queue. You are given an array-backed min-heap. Th...
Check perfect square using binary search
Perfect Square Check (Binary Search) Given a positive integer n, determine whether it is a perfect square (i.e., there exists an integer x such that x...
Merge two N-ary trees by key rules
You are given two N-ary trees A and B. Each node has: - key (string): unique among siblings (i.e., within a node’s children list, no two children shar...
Implement an LRU cache with follow-ups
Coding: Implement an LRU Cache and discuss concurrency Design and implement an in-memory Least Recently Used (LRU) cache data structure. The cache sho...
Compute graph distance and impacted services
Part A — Graph shortest distance (BFS) You are given an interface representing a node in an unweighted graph: `java interface Candidate { String id(...
Compute inverse-depth weighted sum of nested lists
Inverse-Depth Weighted Sum of a Nested List You are given a nested list of integers. Each element is either: - an integer, or - another nested list. D...
Solve common string and subarray problems
You are given three coding tasks: 1) Reverse a string - Input: a string s. - Output: the string with characters in reverse order. 2) Maximum sum of a ...
Find dictionary words matching a phone digit string
You are given: - A digit string digits consisting of characters '2'–'9'. - A list of lowercase words words (dictionary). Use the classic phone keypad ...
Find the k-th largest element in an array
Given an integer array nums and an integer k, return the k-th largest element in the array. Notes: - The k-th largest element is the element that woul...
Design a stack with max removal
Design a stack-like data structure for integers that supports the following operations efficiently: - push(x): insert x onto the stack. - pop(): remov...
Solve substring and top‑K pair problems
Problem A: Smallest window containing all characters Given two strings s and t, find the shortest substring of s that contains all characters of t wit...
Solve six algorithmic problems
Answer the following independent algorithmic prompts. For each, explain your approach, justify data structures, analyze time/space complexity, and pro...
Group words that map to same phone digits
Problem On a classic phone keypad (T9), letters map to digits: - 2: ABC, 3: DEF, 4: GHI, 5: JKL, - 6: MNO, 7: PQRS, 8: TUV, 9: WXYZ Given a list of lo...
Count connected land components in a grid
You are given a 2D grid of characters where: - '1' represents land - '0' represents water A group of land cells forms an island if they are connected ...
Detect intersection of two linked lists
Given two singly linked lists that may converge to share a common tail, determine whether they intersect and return the first node at which they join....