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.11.2026
Showing 20 results
Role
Pinterest logo
Pinterest
Medium
Software Engineer

Mark and Compact a Heap-Indexed Subtree

Mark and Compact a Heap-Indexed Subtree An interview report describes an array-encoded tree, marking a target and its descendants with -1, then moving...

Coding & Algorithms
1
0
22 people solved
Jul 2, 2026
Expedia logo
Expedia
Medium
Software Engineer

Find a Canonical Shortest Round Trip Through Flights

Find a Canonical Shortest Round Trip Through Flights Problem Implement shortestRoundTrip(flights, start) -> route. Each element of flights is a direct...

Coding & Algorithms
0
0
2 people solved
Jul 16, 2026
Grammarly logo
Grammarly
Medium
Software Engineer Locked

Deep-Copy a Linked List with Random Pointers

Clone a linked list whose records use arbitrary IDs for next and random pointers. Translate every identity and pointer through supplied fresh IDs whil...

Coding & Algorithms
1
0
16 people solved
Jun 19, 2026
Uber logo
Uber
Medium
Software EngineerSenior+ Locked

Shortest Path in a Grid with Blocked Cells

This question tests a candidate's practical grasp of graph traversal algorithms applied to 2D grid problems, specifically BFS for unweighted shortest-...

Coding & Algorithms
0
0
10 people solved
Jun 19, 2026
6Sense logo
6Sense
Medium
Software Engineer

Count Squares from Points in the Plane

Implement count_squares(points). Given distinct 2D points with integer coordinates, count the unique squares whose four corners all occur in the input...

Coding & Algorithms
0
0
1 people solved
Jul 27, 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
132 people solved
Jan 9, 2026
MathWorks logo
MathWorks
Medium
Software EngineerNew Grad

Determine Whether P's Position Is Unique

You are given an R x C rectangular grid and a set of named entities. Each entity must be placed in exactly one distinct cell. You are also given a col...

Coding & Algorithms
5
0
73 people solved
Jan 22, 2026
OpenAI logo
OpenAI
Medium
Software Engineer

Count Connected Friend Groups

Count Connected Friend Groups You are given an n x n symmetric adjacency matrix. is_connected[i][j] == 1 means person i and person j are directly conn...

Coding & Algorithms
7
0
44 people solved
Jul 1, 2026
Amazon logo
Amazon
Medium
Software EngineerNew Grad

Solve tree and DP problems

This coding round contained two algorithm questions: 1. Deepest shared ancestor in a binary tree You are given the root of a binary tree and two ...

Coding & Algorithms
39
0
270 people solved
Oct 24, 2025
Snapchat logo
Snapchat
Medium
Software Engineer Locked

Maximize correct guesses in a hat line puzzle

This question evaluates logical reasoning about information constraints, group strategy design, and combinatorial encoding in the Coding & Algorithms ...

Coding & Algorithms
9
0
88 people solved
Feb 12, 2026
OpenAI logo
OpenAI
Medium
Software Engineer

Implement follow graph with snapshots and recommendations

Design and implement an in-memory “social network” component that supports following/unfollowing, point-in-time (snapshot) queries, and a simple recom...

Coding & Algorithms
40
0
576 people solved
Feb 2, 2026
Uber logo
Uber
Medium
Software EngineerSenior+

Solve stock profit and vertical tree traversal

You have a 60-minute coding interview with two algorithm questions: 1) Max profit from one stock trade - Input: an integer array prices, where prices[...

Coding & Algorithms
13
0
138 people solved
Feb 9, 2026
Google logo
Google
Medium
Software Engineer Locked

Solve Rooms and Top-K Streams

This question evaluates algorithmic problem-solving skills across interval scheduling/resource allocation and streaming top-k maintenance, testing com...

Coding & Algorithms
6
0
43 people solved
Jun 5, 2026
Anthropic logo
Anthropic
Medium
Software Engineer

Implement crawler, dedup, and persistent LRU

Implement crawler, dedup, and persistent LRU LeetCode 1236. Web Crawler: Crawl web pages starting from a given URL within the same hostname. LeetCode ...

Coding & Algorithms
114
0
789 people solved
Aug 4, 2025
Salesforce logo
Salesforce
Medium
Software EngineerSenior+

Solve Two OA Coding Problems

The online assessment included two coding problems: 1. In-place character run compression - You are given an array of characters. - Compress con...

Coding & Algorithms
16
0
106 people solved
Apr 5, 2026
Harvey logo
Harvey
Hard
Software EngineerSenior+ Locked

Design an In-Memory Spreadsheet Engine

This question tests a candidate's ability to design a dependency-tracking data structure with efficient cache invalidation, drawing on graph traversal...

Coding & Algorithms
1
0
15 people solved
Jun 4, 2026
Tesla logo
Tesla
Easy
Software Engineer

Shortest Bridge to Connect Two Islands

You are given an n x n grid where each cell is either water (0) or land (1). Land cells that are adjacent horizontally or vertically belong to the sam...

Coding & Algorithms
1
0
11 people solved
Jun 29, 2026
DRW logo
DRW
Medium
Software EngineerIntern

Solve three algorithmic OA problems

This is an online assessment (Codility-style, 150 minutes) consisting of three independent coding problems. Solve each one separately; they do not sha...

Coding & Algorithms
22
0
187 people solved
Oct 8, 2025
Twitch logo
Twitch
Medium
Software Engineer

Solve four design-leaning coding problems

You are given four independent interview-style coding tasks. For each task, implement the requested function/class with clear inputs/outputs and reaso...

Coding & Algorithms
19
0
140 people solved
Oct 26, 2025
Reddit logo
Reddit
Medium
Software Engineer Locked

Merge Message Context Windows

This question evaluates a candidate's skill in designing efficient algorithms and appropriate data-structure use for merging overlapping message conte...

Coding & Algorithms
23
0
188 people solved
Jan 23, 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