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

Implement three interview-style coding tasks

You are given three separate coding tasks, all focused on algorithm and data-structure design. --- Task 1: Longest Bounded-Difference Subarray You are...

Coding & Algorithms
15
0
132 people solved
Nov 11, 2025
Meta logo
Meta
Medium
Software Engineer

Determine if subarray sums to target

You are given an array of non-negative integers and a non-negative integer target. Determine whether there exists a contiguous subarray (continuous se...

Coding & Algorithms
7
0
59 people solved
Nov 11, 2025
Molocoads logo
Molocoads
Hard
Software Engineer

Find single element when others repeat k times

You are given a sorted array of integers nums in non-decreasing order, and an integer k ≥ 2. Every value in nums appears exactly k times in a row, exc...

Coding & Algorithms
6
0
49 people solved
Nov 9, 2025
Molocoads logo
Molocoads
Hard
Software Engineer

Compute subarray span for each element

You are given an integer array nums of length n. For each index i (0 <= i < n), define ans[i] as the maximum possible length of a contiguous subarray ...

Coding & Algorithms
6
0
57 people solved
Nov 9, 2025
Coinbase logo
Coinbase
Medium
Software Engineer

Design an in-memory database with TTL and backups

You are asked to implement a small in-memory “database” that evolves across 4 parts. In each part you may reuse your previous code and only add/extend...

Coding & Algorithms
32
0
288 people solved
Nov 8, 2025
DoorDash logo
DoorDash
Hard
Software Engineer

Find longest common ordered restaurant list

You have two delivery drivers who each have a pickup plan represented as a list of restaurant IDs (strings). Because there is only one car, the combin...

Coding & Algorithms
26
0
197 people solved
Nov 7, 2025
Jane Street logo
Jane Street
Medium
Software EngineerIntern

Bottom-Insertion Connect Game: Detect the First k-in-a-Row Winner

Two players, B and R, take turns dropping pieces onto a board that covers the upper half-plane of an integer grid. Columns are indexed by arbitrary in...

Coding & Algorithms
1
0
21 people solved
Nov 6, 2025
Hopper logo
Hopper
Medium
Software Engineer

How would you sort filenames with numeric segments?

You are given a list of filename strings (e.g., "file10.txt", "file2.txt", "10file.txt"). Implement a custom sort for these strings using a comparator...

Coding & Algorithms
5
0
40 people solved
Nov 6, 2025
Databricks logo
Databricks
Hard
Software Engineer

Find shortest path in a Fibonacci-ordered tree

You are given a recursively-defined binary tree T(order) whose shape depends only on order (not on node values). Nodes are labeled 0..N-1 using preord...

Coding & Algorithms
20
0
153 people solved
Nov 6, 2025
Oracle logo
Oracle
Medium
Software Engineer

Implement an LRU cache

Design and implement an in-memory cache that evicts entries using the Least Recently Used (LRU) policy. The cache should store key–value pairs and sup...

Coding & Algorithms
3
0
41 people solved
Nov 6, 2025
Purestorage logo
Purestorage
Medium
Software Engineer

Determine whether points form squares

Problem: Square detection and counting from point coordinates You are given points on a 2D plane with integer coordinates. Part A — Validate a single ...

Coding & Algorithms
7
0
90 people solved
Nov 5, 2025
Google logo
Google
Medium
Software Engineer

Compute servers needed for daily recurring jobs

You operate a cluster of identical servers that run recurring daily jobs. For a single day, you are given a list of job execution intervals. Each inte...

Coding & Algorithms
15
0
144 people solved
Nov 5, 2025
Google logo
Google
Medium
Software Engineer

Minimize calls to find all bad test pairs

You have \(n\) atomic tests \(t_1, t_2, \dots, t_n\). You are given access to a black-box function: `python bool runTest(set<Test> S) ` which behaves ...

Coding & Algorithms
13
0
140 people solved
Nov 5, 2025
Google logo
Google
Medium
Software Engineer

Find shared objects across two log files

You are given two large log files representing activity on two different days. Each line of each log has three fields: - timestamp: a time value (you ...

Coding & Algorithms
6
0
79 people solved
Nov 5, 2025
Read.Ai logo
Read.Ai
Medium
Software Engineer

Implement a per-user API rate limiter

You are building an API gateway that must enforce per-user rate limits. Task Implement a rate limiter with the following API: - RateLimiter(int maxReq...

Coding & Algorithms
7
0
61 people solved
Nov 3, 2025
Microsoft logo
Microsoft
Medium
Software Engineer

Find shortest substring with n unique letters

Problem You are given a string s consisting of lowercase English letters and an integer n (1 ≤ n ≤ 26). Find the length of the shortest contiguous sub...

Coding & Algorithms
5
0
46 people solved
Nov 3, 2025
Meta logo
Meta
Medium
Software Engineer

Find K-th Largest and Longest Vacation

Solve the following two coding problems. 1. Find the k-th largest element Given an integer array nums and an integer k, return the element that wou...

Coding & Algorithms
3
0
29 people solved
Nov 1, 2025
Google logo
Google
Easy
Software Engineer

Find k pairs with smallest sums

You are given two sorted integer arrays arr1 and arr2 (each sorted in non-decreasing order), and an integer k. Consider all possible pairs formed by t...

Coding & Algorithms
10
0
74 people solved
Nov 1, 2025
Google logo
Google
Easy
Software Engineer

Find right-side view of binary tree

You are given the root of a binary tree. From the right side of the tree, at each depth you can see exactly one node: the rightmost node at that depth...

Coding & Algorithms
6
0
63 people solved
Nov 1, 2025
Amazon logo
Amazon
Medium
Software EngineerIntern Locked

Implement nested object path lookup

This question evaluates parsing and traversal of nested maps and arrays, robust error handling for missing keys and out-of-bounds indices, and reasoni...

Coding & Algorithms
3
0
37 people solved
Oct 31, 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