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

Find longest substring with ≥k repeats

This question evaluates proficiency with string-processing techniques and character frequency analysis, focusing on algorithmic skills in the Coding &...

Coding & Algorithms
3
0
39 people solved
Jan 9, 2026
OpenAI logo
OpenAI
Medium
Software Engineer

Implement a memory allocator with malloc/free

Problem You are implementing a simplified memory allocator over a contiguous memory region. Initialize the allocator with a fixed total size: - alloca...

Coding & Algorithms
19
0
201 people solved
Jan 9, 2026
Roku logo
Roku
Medium
Software Engineer Locked

Compute longest common subsequence length

This question evaluates understanding of dynamic programming and sequence processing, measuring competence in reasoning about optimal substructure, ov...

Coding & Algorithms
6
0
74 people solved
Jan 8, 2026
Snowflake logo
Snowflake
Hard
Software Engineer

Compute Inherited Role Privileges

You are given n roles. The array initialPrivileges has length n, where initialPrivileges[i] is the list of privileges directly assigned to role i. You...

Coding & Algorithms
1
0
15 people solved
Apr 5, 2026
Anthropic logo
Anthropic
Medium
Software Engineer Locked

Build a concurrent web crawler

This question evaluates understanding of concurrent programming, synchronization, thread safety, and graph traversal as applied to a multithreaded web...

Coding & Algorithms
22
0
144 people solved
Apr 5, 2026
Meta logo
Meta
Medium
Software Engineer Locked

Solve delimiter and CSV tasks

This question evaluates skills in string parsing and bracket balancing, CSV/file parsing and joining, computation of derived values, and sorting, emph...

Coding & Algorithms
6
0
53 people solved
Apr 5, 2026
Squarespace logo
Squarespace
Easy
Software Engineer

Count Numbers Inside All Intervals

You are given: 1. An integer array nums. 2. A list of intervals intervals, where each interval is represented as [start, end]. The intervals are not s...

Coding & Algorithms
3
1
30 people solved
Apr 5, 2026
SoFi logo
SoFi
Easy
Software Engineer Locked

Count numbers with same popcount up to all-ones bound

This question evaluates skill in bit manipulation and combinatorial counting over binary representations in the Coding & Algorithms domain, specifical...

Coding & Algorithms
18
0
129 people solved
Jan 7, 2026
Databricks logo
Databricks
Hard
Software Engineer Locked

Find all anagram start indices

This question evaluates proficiency in string manipulation, algorithmic efficiency, and pattern detection through character frequency analysis, assess...

Coding & Algorithms
14
0
138 people solved
Jan 7, 2026
Wave logo
Wave
Hard
Software Engineer Locked

Construct a circular gift exchange across families

This question evaluates ability to model constrained permutations and apply graph-theoretic and combinatorial reasoning to produce a single circular o...

Coding & Algorithms
3
0
30 people solved
Jan 6, 2026
Google logo
Google
Hard
Software Engineer Locked

Determine winner in stack-merging game

This question evaluates understanding of combinatorial game theory, impartial game analysis, state-space encoding, and efficient state-space search te...

Coding & Algorithms
10
1
72 people solved
Jan 6, 2026
PayPal logo
PayPal
Medium
Software Engineer Locked

Solve common search/parse/graph frequency tasks

This multi-part question evaluates algorithmic problem-solving skills across searching and sorting variants, rotated-array search, nested string decod...

Coding & Algorithms
5
0
69 people solved
Jan 6, 2026
xAI logo
xAI
Easy
Software Engineer

Implement an in-memory database with TTL and backup

In-Memory Database (Levels 1–4: TTL and Backup/Restore) Implement an in-memory database that stores records identified by a string key. Each record co...

Coding & Algorithms
107
2
1031 people solved
Jan 6, 2026
Bloomberg logo
Bloomberg
Medium
Software Engineer Locked

Validate whether brackets are properly nested

This question evaluates proficiency in sequence validation, paired-token matching, and the use of data structures to manage nested elements within str...

Coding & Algorithms
13
0
100 people solved
Jan 6, 2026
Google logo
Google
Medium
Software Engineer Locked

Solve meeting-room scheduling and shortest paths

This question evaluates proficiency in interval scheduling and resource allocation as well as shortest-path computation in weighted directed graphs, e...

Coding & Algorithms
8
0
151 people solved
Jan 6, 2026
Microsoft logo
Microsoft
Medium
Software Engineer Locked

Rotate a 3×3 digit grid by 180°

This question evaluates understanding of grid and string manipulation, coordinate transformations, spatial reasoning, and character validation in cons...

Coding & Algorithms
10
0
115 people solved
Jan 6, 2026
Amazon logo
Amazon
Medium
Software EngineerIntern Locked

Maximize capacity with primary-backup pairing

This question evaluates combinatorial optimization and constrained matching skills, focusing on algorithm design, complexity analysis, and resource-al...

Coding & Algorithms
5
0
49 people solved
Jan 6, 2026
Google logo
Google
Medium
Software Engineer Locked

Design a rolling hit counter API

This question evaluates proficiency with data structures for time-window aggregation and understanding of time/space trade-offs when counting events w...

Coding & Algorithms
9
0
104 people solved
Jan 6, 2026
TikTok logo
TikTok
Medium
Software Engineer Locked

Minimize total factory cost with distance penalties

This question evaluates dynamic programming and sequence optimization skills, focusing on modeling cumulative build costs with adjacency distance pena...

Coding & Algorithms
5
0
39 people solved
Jan 6, 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