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 20 results
Role
LinkedIn logo
LinkedIn
Medium
Software EngineerSenior+

Merge Keyed N-Ary Trees

Merge Keyed N-Ary Trees An N-ary tree node contains a unique string key among its siblings and a list of children. Implement merge_trees(a, b) for two...

Coding & Algorithms
9
0
100 people solved
Jun 11, 2026
LinkedIn logo
LinkedIn
Medium
Software Engineer Locked

Longest Run of Ones After One Flip

This question tests a candidate's ability to solve a sliding window problem involving binary arrays, extending the basic "maximum consecutive ones" pa...

Coding & Algorithms
1
0
12 people solved
Jun 23, 2026
LinkedIn logo
LinkedIn
Medium
Software Engineer

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

Coding & Algorithms
17
0
129 people solved
Jan 9, 2026
LinkedIn logo
LinkedIn
Medium
Software Engineer

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

Coding & Algorithms
8
0
137 people solved
Oct 20, 2025
LinkedIn logo
LinkedIn
Medium
Software Engineer

The Celebrity Problem

The Celebrity Problem At a party there are n people, labeled 0 to n - 1. Among them there may be exactly one celebrity — a person who satisfies both o...

Coding & Algorithms
0
0
8 people solved
Jun 23, 2026
LinkedIn logo
LinkedIn
Easy
Software EngineerSenior+ Locked

Design O(1) Randomized Multiset

This question evaluates data-structure design skills, understanding of hashing and randomization for uniform sampling, handling of duplicate elements,...

Coding & Algorithms
5
0
56 people solved
Apr 6, 2026
LinkedIn logo
LinkedIn
Medium
Software Engineer

Differentiate Java final, finalize, finally

Differentiate Java's final, finalize, and finally. Define what final means for variables, methods, and classes and give examples; explain what finaliz...

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

Design a max-stack with efficient operations

Design a max-stack with efficient operations Design a stack that supports push (x), pop(), top(), peekMax(), and popMax(). The popMax operation must r...

Coding & Algorithms
8
0
71 people solved
Aug 8, 2025
LinkedIn logo
LinkedIn
Medium
Software Engineer

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

Coding & Algorithms
40
0
279 people solved
Nov 21, 2025
LinkedIn logo
LinkedIn
Medium
Software Engineer

Compare heap and stack memory

Compare heap and stack memory. Explain how each is allocated and freed, typical lifetimes of data stored there, access patterns and performance charac...

Coding & Algorithms
5
0
96 people solved
Sep 6, 2025
LinkedIn logo
LinkedIn
Medium
Software Engineer Locked

Can You Place N Objects?

This question evaluates array traversal, adjacency-constraint reasoning, and greedy placement intuition, emphasizing handling of boundary conditions a...

Coding & Algorithms
8
0
71 people solved
Mar 22, 2026
LinkedIn logo
LinkedIn
Medium
Software Engineer

Find k closest values in a BST

Find k closest values in a BST Given a binary search tree with n nodes and a real target t, return k node values whose distances to t are smallest. Im...

Coding & Algorithms
5
0
101 people solved
Aug 10, 2025
LinkedIn logo
LinkedIn
Easy
Software Engineer

Count Trips From Vehicle Logs

You are given a text log of vehicle events on a road system. Each log record contains: - license_plate: a string identifying a vehicle - event_type: o...

Coding & Algorithms
2
0
20 people solved
Apr 11, 2026
LinkedIn logo
LinkedIn
Medium
Software Engineer

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

Coding & Algorithms
2
0
27 people solved
Apr 6, 2026
LinkedIn logo
LinkedIn
Medium
Software EngineerSenior+

Solve Cache, Window, and Heap Problems

You may be asked to solve multiple algorithmic problems in coding rounds: 1. Frequency-based cache: Implement a cache with get(key) and put(key, value...

Coding & Algorithms
0
0
14 people solved
Feb 16, 2026
LinkedIn logo
LinkedIn
Medium
Software Engineer

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

Coding & Algorithms
19
1
127 people solved
Feb 11, 2026
LinkedIn logo
LinkedIn
Medium
Software Engineer

Analyze time and space complexity

Analyze time and space complexity For any algorithm you implement, analyze its time and space complexity using Big-O notation. Derive and justify the ...

Coding & Algorithms
5
0
60 people solved
Jul 31, 2025
LinkedIn logo
LinkedIn
Medium
Software Engineer

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

Coding & Algorithms
11
0
87 people solved
Nov 21, 2025
LinkedIn logo
LinkedIn
Medium
Software EngineerSenior+ Locked

Solve substring and top‑K pair problems

This multi-part question evaluates algorithm design and data-structure proficiency across string processing (minimum window substring), pair-selection...

Coding & Algorithms
11
0
82 people solved
Oct 13, 2025
LinkedIn logo
LinkedIn
Medium
Software Engineer

Minimize adjacent-color assignment cost

Minimize adjacent-color assignment cost You are given H linear items (e.g., houses) and an H×C cost matrix where cost[i][c] is the cost of assigning c...

Coding & Algorithms
4
0
82 people solved
Aug 10, 2025

Explore more LinkedIn Software Engineer interview questions

Real questions from candidate reports, grouped by topic.

Other LinkedIn Software Engineer categories
Browse all