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
Google logo
Google
Hard
Software Engineer

Count Overlapping Rectangle Updates on a Grid

Count Overlapping Rectangle Updates on a Grid Implement range_add_counts(n, rectangles). Start with an n x n matrix of zeroes. Each rectangle is repre...

Coding & Algorithms
11
1
61 people solved
Jul 10, 2026
Decagon logo
Decagon
Medium
Software Engineer

Enumerate 4x4 Tic-Tac-Toe Games

You are given an empty $4 \times 4$ board. Two players, X and O, alternate turns with X moving first. A player wins as soon as they place three of the...

Coding & Algorithms
69
0
646 people solved
Mar 9, 2026
OpenAI logo
OpenAI
Medium
Software Engineer Locked

Infection Spread Simulation with Death Threshold

This question evaluates a candidate's ability to implement grid-based simulation with multi-state cellular automaton logic, testing practical applicat...

Coding & Algorithms
10
1
63 people solved
Jun 20, 2026
Anthropic logo
Anthropic
Medium
Software Engineer

Generate Function Profiling Events from Stack Samples

Generate Function Profiling Events from Stack Samples You receive timestamped call-stack samples in increasing timestamp order. Each sample is (timest...

Coding & Algorithms
6
0
66 people solved
Apr 13, 2026
Oracle logo
Oracle
Medium
Software Engineer

Keep At Most K Copies in a Sorted Array

Keep At Most K Copies in a Sorted Array Implement dedupe_sorted(nums, k). Modify the sorted input array in place so each distinct integer appears at m...

Coding & Algorithms
0
0
4 people solved
Jul 26, 2026
Optiver logo
Optiver
Medium
Software Engineer Locked

Maintain Price Levels For A Single-Symbol Order Book

Review a single-symbol order book implementation prompt with insert, modify, cancel, and price-level lookup callbacks. The interview topic focuses on ...

Coding & Algorithms
83
4
802 people solved
Jun 26, 2026
Moodys logo
Moodys
Medium
Software Engineer

Find the Longest Subarray with at Most Two Distinct Values

Find the Longest Subarray with at Most Two Distinct Values Given an array of integers, return the length of the longest contiguous subarray containing...

Coding & Algorithms
0
0
4 people solved
Jul 25, 2026
Oscar logo
Oscar
Easy
Software EngineerSenior+

Find Clients Outside Provider Coverage

Problem Implement outside_coverage(providers, clients, max_distance). Each provider has an id, a list of specialties, and a two-dimensional location =...

Coding & Algorithms
1
0
15 people solved
Jul 14, 2026
Databricks logo
Databricks
Hard
Software Engineer

Implement a Snapshot Set Iterator

Design and implement a set data structure that supports snapshot iteration. The set stores unique values. It must support the following operations: - ...

Coding & Algorithms
22
0
190 people solved
Apr 12, 2026
Citadel logo
Citadel
Medium
Software Engineer

Perform an External Merge Sort with a Heap

Perform an External Merge Sort with a Heap Sort an integer sequence using the two phases of external merge sort: create sorted runs that fit within a ...

Coding & Algorithms
2
0
25 people solved
Jul 12, 2026
Sig logo
Sig
Easy
Software Engineer

Find Company Tickers Mentioned in a News Headline

Find Company Tickers Mentioned in a News Headline Problem Implement findMentionedTickers(companyNames, tickers, headline). companyNames[i] maps to tic...

Coding & Algorithms
0
0
2 people solved
Aug 3, 2026
Asana logo
Asana
Medium
Software Engineer

Solve a Jigsaw Puzzle

You are given a collection of jigsaw puzzle pieces. Each piece has four edges — top, right, bottom, and left — and a helper function match(edgeA, edge...

Coding & Algorithms
76
0
795 people solved
Apr 2, 2026
OpenAI logo
OpenAI
Medium
Software Engineer Locked

Find and Count Maximum-Score Grid Paths

Find the maximum-scoring path from a fixed top-row cell to the last row of a grid using diagonal, downward, and limited two-row jump moves. Return the...

Coding & Algorithms
4
0
35 people solved
Jun 11, 2026
Stripe logo
Stripe
Medium
Software Engineer

Schedule Weekly Deployment Windows

Schedule Weekly Deployment Windows The source reports a weekly deployment-window scheduler. The absolute-time horizon, cyclic start == end rule, and c...

Coding & Algorithms
5
0
51 people solved
May 9, 2026
OpenAI logo
OpenAI
Hard
Software Engineer Locked

Consistent Hashing Ring with Virtual Nodes for Shard Rebalancing

This question evaluates a candidate's ability to design and implement a consistent hashing ring with virtual nodes for distributing keys across shards...

Coding & Algorithms
7
0
41 people solved
Jun 26, 2026
Lead logo
Lead
Medium
Software Engineer

Process Calendar Events with Deletion, Pagination, and Overlap Queries

Process Calendar Events with Deletion, Pagination, and Overlap Queries Process operations against an in-memory calendar. Every event has a unique name...

Coding & Algorithms
1
0
16 people solved
Jul 8, 2026
Deshaw logo
Deshaw
Medium
Software Engineer

Maximum L1 Distance Between Equal-Length Subarrays

Problem Implement max_l1_subarray_distance(a, b) for two nonempty integer arrays. Choose one nonempty contiguous subarray from a and one nonempty cont...

Coding & Algorithms
1
0
18 people solved
Jun 18, 2026
Harvey logo
Harvey
Medium
Software Engineer Locked

Implement an Integer Spreadsheet with Formulas

Implement an in-memory integer spreadsheet with literals, additive formulas, nested references, replacement updates, and zero-valued unset cells. Each...

Coding & Algorithms
1
0
29 people solved
Jun 6, 2026
OpenAI logo
OpenAI
Hard
Software Engineer Locked

Aggregate Recent Message Events And Active Chats

Prepare for a stateful event aggregation coding prompt over chat events and active chats in a rolling five-minute window. The question is useful for d...

Coding & Algorithms
66
1
436 people solved
Jun 5, 2026
Google logo
Google
Medium
Software Engineer Locked

Boolean Expression Tree with Leaf Flips

This question evaluates a candidate's ability to work with tree data structures and apply efficient update propagation techniques. It tests practical ...

Coding & Algorithms
7
0
37 people solved
Jun 9, 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