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
Moveworks logo
Moveworks
Medium
Software Engineer

Find a secret word via match feedback

Word Guessing Game (Mastermind-style) You are given a list of unique candidate words wordlist. All words have the same length L and contain only lower...

Coding & Algorithms
9
0
181 people solved
Dec 15, 2025
OpenAI logo
OpenAI
Hard
Software Engineer

Implement an in-memory SQL-like table

Problem Implement a simple in-memory database for one table. All values are strings. Each row is identified by a rowKey (string). Each row contains co...

Coding & Algorithms
64
0
1070 people solved
Dec 15, 2025
OpenAI logo
OpenAI
Hard
Software Engineer

Implement credit ledger with out-of-order timestamps

Problem You are implementing a GPU credit ledger that supports adding credits, charging credits, and querying balances. Requests can arrive in any tim...

Coding & Algorithms
140
1
950 people solved
Dec 15, 2025
Amazon logo
Amazon
Medium
Software Engineer AI Locked

Implement a Worker Hours Register

This question evaluates data structures and algorithms skills for temporal event tracking, interval arithmetic, stateful session management, ranking, ...

Coding & Algorithms
14
0
106 people solved
Feb 14, 2026
Docker logo
Docker
Medium
Software Engineer Locked

Evaluate an arithmetic expression

This question evaluates parsing and expression-evaluation skills, specifically handling operator precedence, integer division truncation, multi-digit ...

Coding & Algorithms
5
0
47 people solved
Feb 14, 2026
Bytedance logo
Bytedance
Medium
Software Engineer

Find the Longest Palindromic Substring in Linear Time

Implement longest_palindromic_substring(s) and achieve O(n) time. Return the longest contiguous substring that reads the same forward and backward. If...

Coding & Algorithms
0
0
1 people solved
Apr 28, 2026
Shopify logo
Shopify
Medium
Software Engineer AI

Implement an In-Memory File System

Implement an In-Memory File System The source reports an in-memory file-system exercise but not its exact error serialization or current-directory rem...

Coding & Algorithms
1
0
15 people solved
Apr 28, 2026
Jump Trading logo
Jump Trading
Medium
Software Engineer Locked

Identify read-only files from permission records

This question evaluates proficiency in parsing and filtering structured data by interpreting Unix-like permission strings and extracting filenames bas...

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

Find shortest relationship path using BFS

This question evaluates proficiency in graph representations and traversal algorithms—specifically BFS and adjacency-structure construction—for comput...

Coding & Algorithms
21
0
143 people solved
Feb 12, 2026
Datadog logo
Datadog
Medium
Software Engineer Locked

Build span trees from unordered trace spans

This question evaluates skill in reconstructing hierarchical relationships from unordered span records, testing understanding of tree structure assemb...

Coding & Algorithms
21
0
171 people solved
Feb 12, 2026
Together AI logo
Together AI
Medium
Software Engineer

Detect cycles and break them in pod dependencies

You are given dependencies between software pods. Each dependency is a directed edge u -> v meaning pod u must be built/installed before pod v. Part 1...

Coding & Algorithms
12
0
160 people solved
Feb 12, 2026
Samsung logo
Samsung
Easy
Software Engineer

Count islands in a binary grid

Problem You are given an m x n grid of characters where each cell is either '1' (land) or '0' (water). An island is formed by connecting adjacent land...

Coding & Algorithms
6
0
49 people solved
Feb 12, 2026
Uber logo
Uber
Medium
Software Engineer Locked

Compute time for virus to infect grid

This question evaluates a candidate's ability to reason about grid-based state propagation, algorithmic problem solving, and performance consideration...

Coding & Algorithms
23
0
180 people solved
Feb 12, 2026
Applied logo
Applied
Medium
Software Engineer Locked

Find first and last occurrence in sorted array

This question evaluates proficiency in array search algorithms and algorithmic reasoning, specifically the use of binary search techniques and careful...

Coding & Algorithms
2
0
28 people solved
Feb 12, 2026
Lead Bank logo
Lead Bank
Medium
Software Engineer

Implement a versioned hash map with snapshot

VersionedHashMap (time-travel key-value store) Design and implement a data structure VersionedHashMap<K, V> backed by a hash map that supports retriev...

Coding & Algorithms
7
0
103 people solved
Feb 12, 2026
Amazon logo
Amazon
Medium
Software Engineer Locked

Answer two coding questions (SQL and DP)

This multi-part question evaluates SQL query skills (handling distinct values, aggregation and edge-case NULL results) and algorithmic proficiency in ...

Coding & Algorithms
26
0
222 people solved
Feb 12, 2026
Microsoft logo
Microsoft
Medium
Software Engineer Locked

Find maximum collinear points

This question evaluates understanding of planar geometry and algorithmic reasoning for identifying collinearity, including handling duplicate points a...

Coding & Algorithms
6
0
101 people solved
Feb 12, 2026
Square logo
Square
Medium
Software EngineerSenior+

Build a Trust-Aware BIN Database

Build a Trust-Aware BIN Database Implement process_bin_operations(operations) for an in-memory database of card-number prefixes. A prefix identifies a...

Coding & Algorithms
1
0
14 people solved
Apr 27, 2026
Meta logo
Meta
Hard
Software Engineer AI

Solve Two Backtracking Array Problems

You will solve two independent coding problems. For each problem, first discuss edge cases, then implement a correct solution, and finally explain how...

Coding & Algorithms
36
0
292 people solved
Apr 27, 2026
MathWorks logo
MathWorks
Easy
Software EngineerIntern

How to maximize rewards with exactly k tasks

You are assigning n independent tasks to two interns. - Each task must be done by exactly one intern. - If intern 1 does task i, you earn reward1[i] p...

Coding & Algorithms
5
0
55 people solved
Feb 11, 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