Software Engineer Coding & Algorithms Interview Questions

Practice 2,743 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
Amazon logo
Amazon
Medium
Software EngineerIntern

Implement Cache and Count Components

You are asked to solve two independent coding problems in this session, each followed by a short discussion. This mirrors a 60-minute Amazon SDE codin...

Coding & Algorithms
35
0
408 people solved
Mar 7, 2026
eBay logo
eBay
Hard
Software EngineerSenior+

Find top co-viewed products

You are given a list of user browsing sessions, where each session is a list of product IDs, a target_product, and an integer k. A product should be c...

Coding & Algorithms
4
0
35 people solved
Mar 7, 2026
Affirm logo
Affirm
Medium
Software Engineer Locked

Aggregate loans and match repayments

This question evaluates the ability to aggregate transactional loan records and match repayment transactions to outstanding loans, testing competencie...

Coding & Algorithms
6
0
79 people solved
Mar 7, 2026
Meta logo
Meta
Medium
Software Engineer

Merge Two Lists of Non-Overlapping Intervals

You are given two lists of closed integer intervals, a and b. Each interval is represented as a pair [start, end] with start <= end, and it covers eve...

Coding & Algorithms
1
0
13 people solved
Mar 6, 2026
Meta logo
Meta
Medium
Software Engineer

Minimum Round-Trip Flight Cost

You are planning a round trip and want to spend as little as possible on flights. You are given two integer arrays of equal length n: - departure[i] —...

Coding & Algorithms
0
0
5 people solved
Mar 6, 2026
Meta logo
Meta
Medium
Software Engineer AI

Maximum Length of a Word Selection With All Unique Characters

You are given an array of lowercase strings words. Select a subset of these words (zero or more, chosen in any order) and concatenate them. The select...

Coding & Algorithms
0
0
7 people solved
Mar 6, 2026
Apple logo
Apple
Medium
Software Engineer

Generate Tower of Hanoi moves

You are given n disks of different sizes stacked on peg A (largest at bottom). You have two other pegs, B and C. You may move one disk at a time, and ...

Coding & Algorithms
9
0
88 people solved
Mar 6, 2026
Amazon logo
Amazon
Medium
Software EngineerIntern

Compute Latencies and Search Grid Path

You are given two coding tasks from an internship interview. Task 1: Compute Message Latency from CSV Logs Two systems, ComputeA and ComputeB, exchang...

Coding & Algorithms
0
0
15 people solved
Mar 4, 2026
OpenAI logo
OpenAI
Medium
Software Engineer

Count Nodes Using Asynchronous Messages

You are given the identifier of a root node in a distributed network. Each node represents a separate machine. A node cannot directly inspect another ...

Coding & Algorithms
3
0
25 people solved
Mar 4, 2026
Meta logo
Meta
Medium
Software Engineer

Construct a BST and read spiral order

The coding round reportedly included two algorithmic tasks: 1. Rebuild a binary search tree from a preorder sequence - You are given an array of di...

Coding & Algorithms
17
0
115 people solved
Mar 4, 2026
Instacart logo
Instacart
Medium
Software Engineer

Evaluate an arithmetic expression

Write a function that evaluates a mathematical expression given as a string. Requirements: - Supports non-negative integers and whitespace. - Supports...

Coding & Algorithms
13
0
109 people solved
Mar 4, 2026
Amplitude logo
Amplitude
Medium
Software Engineer

Implement Employee Validation and Snake

This interview covered two coding tasks: 1. Employee validation - Implement a function that validates a collection of employees against a set of bu...

Coding & Algorithms
4
0
50 people solved
Mar 3, 2026
Airbnb logo
Airbnb
Medium
Software EngineerSenior+

Parse Query Parameters Into a Map

Implement a function that parses the query portion of a GET URL and returns a map from query keys to parsed values. Input is a string that may start w...

Coding & Algorithms
2
0
17 people solved
Mar 2, 2026
Glean logo
Glean
Medium
Software Engineer

Implement 2048 Game Logic

Implement the core movement logic for the 2048 game. You are given an n x n integer board where 0 represents an empty cell and every nonzero value rep...

Coding & Algorithms
27
0
191 people solved
Mar 1, 2026
NVIDIA logo
NVIDIA
Medium
Software Engineer

Implement a disk space manager with eviction

Design and implement an in-memory disk space manager that stores datasets by datasetId with a given size (e.g., in MB). The manager has a fixed total ...

Coding & Algorithms
6
0
79 people solved
Mar 1, 2026
Oracle logo
Oracle
Medium
Software Engineer

Compute letter frequencies from encoded string

Problem You are given an encoded string s representing a string of lowercase English letters (a–z). The encoding follows these rules: 1. Letters a to ...

Coding & Algorithms
5
1
92 people solved
Mar 1, 2026
Snowflake logo
Snowflake
Hard
Software Engineer Locked

Minimize coins with overpay and change

This question evaluates algorithmic optimization and combinatorial reasoning in the coin-change domain, measuring proficiency with efficient numeric m...

Coding & Algorithms
6
0
84 people solved
Mar 1, 2026
Applied logo
Applied
Medium
Software Engineer Locked

Merge overlapping 2D line segments

This question evaluates computational geometry and algorithmic skills, specifically collinearity detection, geometric segment intersection, merging of...

Coding & Algorithms
4
0
34 people solved
Mar 1, 2026
Uber logo
Uber
Medium
Software Engineer

Find minimum activations to absorb all balls

You are given n balls on a 2D plane, where ball i is at coordinate \((x_i, y_i)\). You are also given a distance threshold d. Two balls are considered...

Coding & Algorithms
20
0
257 people solved
Mar 1, 2026
Harvey logo
Harvey
Medium
Software Engineer Locked

Implement retrieval and evaluation for a simple RAG

This question evaluates understanding of embedding-based retrieval, cosine similarity ranking, and retrieval evaluation metrics (Recall@10 and MRR@10)...

Coding & Algorithms
10
0
136 people solved
Mar 1, 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