LinkedIn Software Engineer Coding & Algorithms Interview Questions

Practice 37 real Coding & Algorithms interview questions for Software Engineer roles at LinkedIn.

37 Questions 1 Company06.23.2026
Showing 17 results
Role
LinkedIn logo
LinkedIn
Medium
Software Engineer

Count islands and distinct shapes

Question LeetCode 200. Number of Islands LeetCode 694. Number of Distinct Islands https://leetcode.com/problems/number-of-islands/description/ https:/...

Coding & Algorithms
4
0
20 people solved
Jul 29, 2025
LinkedIn logo
LinkedIn
Medium
Software EngineerSenior+

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...

Coding & Algorithms
3
0
43 people solved
Apr 2, 2026
LinkedIn logo
LinkedIn
Easy
Software Engineer AI Locked

Debug Queues and Solve Arrays

This multi-part question evaluates competencies in data structures (heap invariants and in-place array manipulation), concurrent programming (designin...

Coding & Algorithms
7
0
96 people solved
Mar 10, 2026
LinkedIn logo
LinkedIn
Medium
Software Engineer

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...

Coding & Algorithms
14
1
199 people solved
Feb 12, 2026
LinkedIn logo
LinkedIn
Medium
Software Engineer

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...

Coding & Algorithms
10
2
145 people solved
Feb 11, 2026
LinkedIn logo
LinkedIn
Medium
Software Engineer Locked

Find dictionary words matching a phone digit string

This question evaluates familiarity with phone-keypad character-to-digit mappings, string pattern matching, and efficient filtering of dictionary word...

Coding & Algorithms
11
1
109 people solved
Jan 12, 2026
LinkedIn logo
LinkedIn
Medium
Software Engineer

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...

Coding & Algorithms
4
0
53 people solved
Jan 1, 2026
LinkedIn logo
LinkedIn
Medium
Software EngineerSenior+ Locked

Compute graph distance and impacted services

This question evaluates proficiency in graph algorithms and traversal (shortest-path/BFS and cycle handling), file-path/tree modeling, dependency grap...

Coding & Algorithms
15
0
164 people solved
Dec 26, 2025
LinkedIn logo
LinkedIn
Medium
Software Engineer

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...

Coding & Algorithms
15
0
207 people solved
Dec 8, 2025
LinkedIn logo
LinkedIn
Medium
Software Engineer

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 ...

Coding & Algorithms
9
0
85 people solved
Nov 21, 2025
LinkedIn logo
LinkedIn
Medium
Software Engineer

Validate parentheses with one or three bracket types

Problem Given a string s consisting only of bracket characters, determine whether it is valid. A string is valid if: - Every opening bracket has a cor...

Coding & Algorithms
5
1
65 people solved
Oct 20, 2025
LinkedIn logo
LinkedIn
Medium
Software Engineer

Solve six algorithmic problems

Answer the following independent algorithmic prompts. For each, explain your approach, justify data structures, analyze time/space complexity, and pro...

Coding & Algorithms
7
0
135 people solved
Sep 6, 2025
LinkedIn logo
LinkedIn
Medium
Software Engineer

Determine sanitized palindrome in string

Write a function that determines whether a string is a palindrome after removing non-alphanumeric characters and ignoring case (e.g., punctuation, whi...

Coding & Algorithms
6
0
61 people solved
Sep 6, 2025
LinkedIn logo
LinkedIn
Medium
Software Engineer

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....

Coding & Algorithms
4
0
59 people solved
Sep 6, 2025
LinkedIn logo
LinkedIn
Medium
Software Engineer

Find lowest common ancestor

Question LeetCode 236. Lowest Common Ancestor of a Binary Tree — Given a binary tree, find the lowest common ancestor (LCA) of two given nodes. Follow...

Coding & Algorithms
8
0
35 people solved
Jul 29, 2025
LinkedIn logo
LinkedIn
Medium
Software Engineer

Reverse a linked list

Question LeetCode 206. Reverse Linked List — Given the head of a singly linked list, reverse the list and return the reversed list. https://leetcode.c...

Coding & Algorithms
5
0
18 people solved
Jul 29, 2025
LinkedIn logo
LinkedIn
Medium
Software Engineer

Solve min window & animal conflicts

Question LeetCode 76. Minimum Window Substring: Given strings s and t, return the smallest substring of s that contains every character of t (includin...

Coding & Algorithms
21
0
54 people solved
Jul 29, 2025

Explore more LinkedIn Software Engineer interview questions

Real questions from candidate reports, grouped by topic.

Other LinkedIn Software Engineer categories
Browse all