Software Engineer Coding & Algorithms Interview Questions

Practice 2,712 real Coding & Algorithms interview questions for Software Engineer roles. From companies including Meta, Amazon, Google, Uber, Microsoft.

2.7k Questions 325 Companies08.16.2026
Showing 20 results
Role
SoFi logo
SoFi
Medium
Software Engineer

Implement tree ops and LRU cache

Question Implement set(index) and clear(index) for the leaves of a full binary tree initially filled with 0s, where a parent node becomes 1 only when ...

Coding & Algorithms
20
0
51 people solved
Jul 29, 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
38 people solved
Jul 29, 2025
TikTok logo
TikTok
Medium
Software Engineer

Flatten object & Promise.all

Question Given a nested JavaScript object, write a function to flatten it so that nested keys are converted to a single-level path (e.g., {a:{b:1}} ->...

Coding & Algorithms
16
0
58 people solved
Jul 29, 2025
Meta logo
Meta
Medium
Software Engineer

Find closest BST value and remove parentheses

Question LeetCode 270. Closest Binary Search Tree Value LeetCode 1249. Minimum Remove to Make Valid Parentheses (follow-up: achieve without using a st...

Coding & Algorithms
13
0
58 people solved
Jul 29, 2025
Capital One logo
Capital One
Medium
Software Engineer

Solve string merge and grid path tasks

Question Given two equal-length strings s1 and s2, create a new string by iterating i = 0 … n-1, comparing s1[i] with s2[n-1-i]: append s1[i]; if the ...

Coding & Algorithms
76
0
103 people solved
Jul 29, 2025
Google logo
Google
Medium
Software Engineer

Remove elements to avoid k-prefix duplicates

Question Given two lists listA and listB and an integer k, delete elements from listB so that the first k elements of the new listB share no value wit...

Coding & Algorithms
26
1
62 people solved
Jul 29, 2025
Datadog logo
Datadog
Medium
Software Engineer

Compute sliding window sums by tag

Question Given a list of datapoints where each datapoint has tags, a timestamp, and a value, write a function that, for a specified tag t and window s...

Coding & Algorithms
4
0
17 people solved
Jul 29, 2025
DoorDash logo
DoorDash
Medium
Software Engineer

Compute nearest-exit distances in a grid

Compute nearest-exit distances in a grid You are given a 2D grid representing a building floor with three cell types: -1 for walls, 0 for exits, and a...

Coding & Algorithms
6
0
69 people solved
Jul 28, 2025
OpenAI logo
OpenAI
Medium
Software Engineer

Implement node messaging and path discovery

You have a network where each node knows only its parent and its children and can send messages to its parent and children. 1) Implement a sendMessage...

Coding & Algorithms
43
0
381 people solved
Jul 27, 2025
Lyft logo
Lyft
Medium
Software Engineer

Implement paginated retrieval of transactions

Implement paginated retrieval of transactions Given a large list of transaction records (id, userId, amount, createdAt), implement APIs to return tran...

Coding & Algorithms
11
0
169 people solved
Jul 27, 2025
Waymo logo
Waymo
Medium
Software Engineer Locked

Find Shortest Knight Path

This question evaluates a candidate's ability to model grid-based movement as a graph and apply shortest-path traversal techniques, testing algorithmi...

Coding & Algorithms
5
0
38 people solved
Feb 20, 2026
Google logo
Google
Medium
Software Engineer Locked

Solve array-sum and city-community problems

This question evaluates array-processing and grid/graph connectivity skills, covering counting subarrays with a target sum and identifying connected b...

Coding & Algorithms
6
0
62 people solved
Feb 20, 2026
Airbnb logo
Airbnb
Medium
Software Engineer

Compute minimum-cost service cover

You are given: ( 1) a list of rental service packages, where each package contains a set of services (strings) and a non-negative price, e.g., [(["wif...

Coding & Algorithms
22
0
181 people solved
Jul 26, 2025
Retool logo
Retool
Medium
Software Engineer

Compute max profit with forced trades

Compute max profit with forced trades Given an array prices where prices[i] is the stock price on day i, solve two related tasks under a forced-trade ...

Coding & Algorithms
11
0
83 people solved
Jul 26, 2025
Pitchbook logo
Pitchbook
Easy
Software Engineer

Implement Euclidean distance and k-nearest neighbors

You are working with points in an n-dimensional Euclidean space, where each point is represented as a list (or array) of numeric coordinates. Assume: ...

Coding & Algorithms
4
0
51 people solved
Oct 29, 2025
Pinduoduo logo
Pinduoduo
Easy
Software Engineer

Find next greater element for subset

You are given two integer arrays query and nums. - All elements in nums are distinct. - Every element in query also appears in nums. For each value x ...

Coding & Algorithms
3
0
37 people solved
Feb 19, 2026
Bytedance logo
Bytedance
Medium
Software EngineerSenior+

Build a validated add-sub calculator

Given a string expression, write a function that validates and evaluates it. The expression represents arithmetic using only non-negative integers and...

Coding & Algorithms
5
0
44 people solved
Feb 18, 2026
Sunrise logo
Sunrise
Easy
Software Engineer

Solve common data-structure and puzzle problems

Solve common data-structure and puzzle problems Solve the following independent problems (language of your choice; assume typical 32/64-bit constraint...

Coding & Algorithms
2
0
38 people solved
Jul 21, 2025
OpenAI logo
OpenAI
Medium
Software Engineer Locked

Compute Plant Infection Stabilization

This question evaluates a candidate's ability to model and simulate discrete-time state transitions on grids, reason about propagation dynamics and ev...

Coding & Algorithms
13
0
88 people solved
Feb 17, 2026
Meta logo
Meta
Hard
Software Engineer

Remove minimum invalid mixed brackets

Given a string s containing letters and bracket characters from the set (), [], {}, remove the minimum number of bracket characters so that the result...

Coding & Algorithms
7
0
66 people solved
Feb 17, 2026

Explore more Software Engineer Coding & Algorithms interview questions

Real questions from candidate reports, grouped by company, topic and role.

By company
Other categories for Software Engineer
Coding & Algorithms questions for other roles
Browse all