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
Crusoe logo
Crusoe
Medium
Software EngineerSenior+

Print a binary tree as aligned text

Implement a function that prints (or returns) an ASCII layout of a binary tree. Requirements: - Each node has a string value (assume it contains no sp...

Coding & Algorithms
13
0
165 people solved
Jan 1, 2026
Google logo
Google
Medium
Software EngineerSenior+

Design set with O(1) random access

Design a data structure ("FancySet") that stores unique integers and supports the following operations, each in average O(1) time: - add(x): Insert va...

Coding & Algorithms
12
0
144 people solved
Jan 1, 2026
Instacart logo
Instacart
Medium
Software Engineer Locked

Implement multiple coding round problems

This multi-part question evaluates algorithmic problem-solving skills including efficient lookup/search, stable ordering and priority management, stre...

Coding & Algorithms
19
0
191 people solved
Jan 1, 2026
Snowflake logo
Snowflake
Hard
Software Engineer Locked

Check if each recipe is a contiguous subsequence

This question evaluates proficiency in algorithmic sequence matching and contiguous subarray detection, encompassing array/string pattern matching and...

Coding & Algorithms
5
0
58 people solved
Jan 1, 2026
Snowflake logo
Snowflake
Hard
Software Engineer Locked

Maximize revenue by choosing one query type

This question evaluates optimization and numerical reasoning skills, specifically selecting a single repetitive action to maximize aggregate revenue u...

Coding & Algorithms
13
0
103 people solved
Jan 1, 2026
Ansys logo
Ansys
Medium
Software EngineerIntern

Implement Prefix Search and Node Removal

This interview included two coding tasks: 1. Implement a prefix-search data structure for strings with two operations: insert(word) and count_with_pre...

Coding & Algorithms
3
0
28 people solved
Dec 31, 2025
Uber logo
Uber
Easy
Software Engineer

Find smallest start index avoiding left exit

You are given an integer array jump of length n (0-indexed). If you are currently at index i, your next position becomes i + jump[i] (a positive value...

Coding & Algorithms
5
0
43 people solved
Dec 30, 2025
Google logo
Google
Medium
Software EngineerIntern Locked

Maximize 1D deliveries within distance and minimize total distance

This question evaluates combinatorial optimization and constrained matching skills, focusing on reasoning about distance-based pairings, lexicographic...

Coding & Algorithms
7
0
81 people solved
Dec 27, 2025
ZipHQ logo
ZipHQ
Medium
Software Engineer

Maximize non-adjacent sum on an N-ary tree

You are given an N-ary tree (each node may have 0..k children). Each node contains an integer value (can be 0 or positive). You want to select a set o...

Coding & Algorithms
28
0
288 people solved
Dec 26, 2025
LinkedIn logo
LinkedIn
Medium
Software EngineerSenior+ Locked

Compute graph distance and impacted services

This question evaluates proficiency in graph algorithms and traversal (shortest-path/BFS and cycle handling), file-path/tree modeling, dependency grap...

Coding & Algorithms
15
0
164 people solved
Dec 26, 2025
Uber logo
Uber
Hard
Software Engineer

Find cheapest flight with at most K stops

Problem You are given a directed weighted graph representing flights between cities. Inputs - An integer n: number of cities, labeled 0..n-1. - A list...

Coding & Algorithms
8
0
79 people solved
Dec 25, 2025
Coinbase logo
Coinbase
Medium
Software Engineer

Implement cloud storage with quotas and compression

Problem Implement an in-memory cloud storage service that supports multiple users, per-user storage quotas, changing quotas with eviction, and file co...

Coding & Algorithms
22
0
217 people solved
Dec 25, 2025
Shopify logo
Shopify
Easy
Software Engineer

Implement a multi-rover Mars controller

Problem Build a small command-line “Mars Rover Controller” program. Single rover (v1) A rover starts at coordinate (0, 0) on an infinite 2D grid and i...

Coding & Algorithms
34
0
383 people solved
Dec 23, 2025
Roblox logo
Roblox
Medium
Software Engineer

Can the character reach the destination?

You control a character starting at a start cell and want to reach a target cell in a 2D grid. Some cells are blocked by obstacles and cannot be enter...

Coding & Algorithms
9
0
100 people solved
Dec 21, 2025
Instacart logo
Instacart
Medium
Software Engineer

Implement timestamped task management system APIs

You are implementing an in-memory Task Management System. All API methods are called with a timestamp representing the logical time when the operation...

Coding & Algorithms
25
0
223 people solved
Dec 21, 2025
Discord logo
Discord
Hard
Software EngineerSenior+

Implement User Sessionization From Event Stream

You are building a backend data-processing component that consumes a stream of newline-delimited JSON events. Each event represents a user sending a m...

Coding & Algorithms
1
0
21 people solved
Dec 16, 2025
DoorDash logo
DoorDash
Medium
Software Engineer

Compute courier pay and implement load balancing

Problem 1: Compute courier (delivery driver) pay You are given a sequence of delivery-related events for a courier during a day. Your task is to compu...

Coding & Algorithms
121
0
949 people solved
Dec 16, 2025
Meta logo
Meta
Medium
Software Engineer

Answer four string/array/battery coding questions

You are given four independent coding questions. Problem A — Uppercase vs lowercase count difference Given a string s (ASCII), count how many characte...

Coding & Algorithms
4
0
46 people solved
Dec 16, 2025
Two Sigma logo
Two Sigma
Hard
Software Engineer

Implement binary encode/decode with frequency tree

Problem Implement a binary encoding and decoding scheme for strings based on character frequencies (Huffman-like coding). You must implement two funct...

Coding & Algorithms
8
0
132 people solved
Dec 15, 2025
TikTok logo
TikTok
Easy
Software Engineer

Implement an LRU cache

Problem: LRU Cache Design and implement a data structure that supports an LRU (Least Recently Used) cache with a fixed capacity. Requirements Implemen...

Coding & Algorithms
5
0
74 people solved
Dec 15, 2025

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