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

Compute Top-K word frequencies under a path

Compute Top-K word frequencies under a path Given a filesystem path that may contain nested subdirectories and files, compute the top K most frequent ...

Coding & Algorithms
25
0
177 people solved
Aug 1, 2025
Microsoft logo
Microsoft
Medium
Software Engineer

Sort Three Categories In Place

You are given an array items containing only the values 0, 1, and 2, where each value represents a category. Rearrange the array in-place so that all ...

Coding & Algorithms
0
0
9 people solved
Apr 18, 2026
Apple logo
Apple
Medium
Software Engineer Locked

Compute Earliest Bus Arrival

This question evaluates proficiency with shortest-path algorithms and time-dependent graph modeling, focusing on reasoning about travel times combined...

Coding & Algorithms
5
1
25 people solved
Apr 18, 2026
xAI logo
xAI
Medium
Software Engineer

Sort a Large Array Using Multiple Threads

Sort a Large Array Using Multiple Threads You are given a large array of integers nums and a thread count k. Sort the array in ascending order using m...

Coding & Algorithms
1
0
14 people solved
Sep 23, 2025
Stripe logo
Stripe
Medium
Software Engineer

Process auth requests with fraud rules

Question Implement a function that, given a list of Authorization Requests (timestamp_seconds, unique_id, amount, card_number, merchant), outputs a hu...

Coding & Algorithms
62
0
114 people solved
Jul 29, 2025
Microsoft logo
Microsoft
Medium
Software Engineer

Retain Top K Elements

Given a list of integers nums and an integer k, return a new list formed from the original list after removing every element except the k largest elem...

Coding & Algorithms
1
0
13 people solved
Apr 17, 2026
Instacart logo
Instacart
Medium
Software Engineer

Implement an In-Memory File Storage System

Implement an in-memory file storage service. You need to support files identified by a unique full path string, such as "/docs/a.txt". Each file has a...

Coding & Algorithms
0
0
8 people solved
Apr 17, 2026
Databricks logo
Databricks
Medium
Software Engineer

Implement Random Connectivity and Grid Routing

This entry contains two independent coding problems. Problem 1: Uniformly connect node groups You are given k non-empty, disjoint groups of unique nod...

Coding & Algorithms
5
1
54 people solved
Apr 17, 2026
Uber logo
Uber
Medium
Software EngineerNew Grad Locked

Determine Whether Queries Can Zero Array

This question evaluates competency in array manipulation, range updates, and feasibility under constraints, focusing on reasoning about sequential int...

Coding & Algorithms
3
0
51 people solved
Apr 17, 2026
Optiver logo
Optiver
Medium
Software Engineer

Design a Balloon Festival Simulator

Implement a class BalloonFestival with the following API and rules. Goal Track hot air balloons (yours and competitors), evolving wind fields, and bal...

Coding & Algorithms
33
0
376 people solved
Jul 27, 2025
Glean logo
Glean
Hard
Software Engineer

Simulate document assignment to indexers

You are given a system with m parallel indexers (workers), numbered from 0 to m-1. Documents arrive over time and are placed in a processing queue. Ea...

Coding & Algorithms
35
0
362 people solved
Nov 19, 2025
Coinbase logo
Coinbase
Medium
Software Engineer

Design order stream with state transitions

Design order stream with state transitions Implement an in-memory order stream service with operations: add(order), delete(order_id), pause(order_id),...

Coding & Algorithms
4
0
80 people solved
Jul 26, 2025
Anthropic logo
Anthropic
Hard
Software Engineer

Group Duplicate Files by Content

Group Duplicate Files by Content Given a snapshot of files, return groups of paths whose complete contents are identical. The interview report preserv...

Coding & Algorithms
0
0
6 people solved
Apr 16, 2026
Bytedance logo
Bytedance
Medium
Software Engineer Locked

Solve String Addition and Expression Evaluation

This question evaluates string manipulation and parsing skills for numeric computation, covering addition of integers represented as character arrays ...

Coding & Algorithms
5
0
37 people solved
Apr 16, 2026
Roblox logo
Roblox
Medium
Software Engineer

Implement a sliding-window rate limiter

Implement an in-memory sliding-window rate limiter. You are given a stream of requests, each with a timestamp in milliseconds. Part 1: Per-user limit ...

Coding & Algorithms
16
0
153 people solved
Jan 24, 2026
Amazon logo
Amazon
Medium
Software EngineerSenior+

Determine Whether a Binary Tree Is a Valid BST

Determine Whether a Binary Tree Is a Valid BST Problem Given a binary tree, determine whether the entire tree satisfies the strict binary-search-tree ...

Coding & Algorithms
0
0
4 people solved
Apr 15, 2026
Meta logo
Meta
Hard
Software EngineerSenior+

Solve Subarray Sum and Local Minimum

Two coding problems were reported in the same phone-screen round: 1. Count target-sum subarrays. Given an integer array nums and an integer k, return ...

Coding & Algorithms
5
0
40 people solved
Apr 15, 2026
Harvey logo
Harvey
Medium
Software Engineer

Highlight Exact Source Matches

You are given a string text and a list of strings sources. For every exact occurrence of any string in sources within text, wrap the matched character...

Coding & Algorithms
2
0
29 people solved
Apr 15, 2026
Amazon logo
Amazon
Hard
Software Engineer Locked

Serialize and deserialize a binary tree

This question evaluates competency in designing robust serialization formats and manipulating binary tree data structures, including preservation of s...

Coding & Algorithms
8
0
72 people solved
Jan 22, 2026
Microsoft logo
Microsoft
Hard
Software Engineer Locked

Return a topological ordering of a graph

This question evaluates understanding of graph algorithms—particularly topological sorting and cycle detection—and competency in ordering dependencies...

Coding & Algorithms
4
0
74 people solved
Jan 22, 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