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
Jane Street logo
Jane Street
Easy
Software Engineer

Sort trade executions into a canonical order

You are building a small component in a trading system that consumes trade execution records from an upstream feed. The records may arrive out of orde...

Coding & Algorithms
58
0
414 people solved
Dec 15, 2025
Walmart Labs logo
Walmart Labs
Medium
Software Engineer

Minimize the Maximum Edge on a Path

Minimize the Maximum Edge on a Path You are given a weighted undirected graph and two vertices, start and target. Define the stress of a path as the l...

Coding & Algorithms
0
0
7 people solved
Apr 12, 2026
Google logo
Google
Medium
Software Engineer Locked

Solve Shortest Paths and Rental Allocation

This question evaluates understanding of shortest-path algorithms and reachability in weighted graphs (including directed vs. undirected handling and ...

Coding & Algorithms
6
0
45 people solved
Apr 12, 2026
Snowflake logo
Snowflake
Medium
Software Engineer

Design an in-memory filesystem and circular queue

Part A — Design an in-memory hierarchical file system. Requirements: - Support operations: ls(path), mkdir(path), createFile(path, content), appendToF...

Coding & Algorithms
8
0
114 people solved
Aug 11, 2025
Bytedance logo
Bytedance
Medium
Software Engineer Locked

Reverse Nodes in K-Sized Groups

This question evaluates skills in manipulating singly linked lists, pointer reassignments, and performing in-place group transformations while meeting...

Coding & Algorithms
1
0
13 people solved
Jun 3, 2026
Nuro logo
Nuro
Medium
Software Engineer

Find gaps between intervals

You are given a list of integer intervals intervals, where each interval is represented as [start, end] (inclusive), and start <= end. Two intervals m...

Coding & Algorithms
14
0
223 people solved
Nov 9, 2025
Render logo
Render
Medium
Software Engineer

Count Blocked Rate-Limited Requests

You are given an in-memory request log for a web platform. Each log entry has: - timestamp: an ISO-8601 UTC timestamp - request_ip: the client IPv4 ad...

Coding & Algorithms
5
0
46 people solved
Feb 26, 2026
Microsoft logo
Microsoft
Medium
Software Engineer

Return a Binary Tree in Zigzag Level Order

Implement zigzag_level_order(values) for a binary tree serialized as a zero-based heap array. For an existing node at index i, its children are at 2 ...

Coding & Algorithms
0
0
2 people solved
Apr 11, 2026
Microsoft logo
Microsoft
Medium
Software Engineer

Check a Linked List Palindrome Without Mutating It

Implement linked_list_palindrome(values), where values is the traversal-order serialization of a singly linked list of integer values. Return whether ...

Coding & Algorithms
0
0
2 people solved
Apr 11, 2026
Microsoft logo
Microsoft
Medium
Software Engineer

Traverse a Matrix in Clockwise Spiral Order

Implement spiral_order(matrix) for a rectangular matrix. Return all values in clockwise spiral order, beginning at the top-left corner and first movin...

Coding & Algorithms
0
0
2 people solved
Apr 11, 2026
Google logo
Google
Medium
Software EngineerNew Grad

Solve Two Array Optimization Problems

You are given two coding problems from the same interview round. Problem 1: Split a gold chain fairly An array weights represents the weights of conse...

Coding & Algorithms
22
1
127 people solved
Apr 11, 2026
Attentive logo
Attentive
Medium
Software EngineerNew Grad

Implement Due Broadcast Sender

You are building a notification system. You are given: - A mapping from company_id to a list of subscriber IDs. - A list of broadcast logs. Each log c...

Coding & Algorithms
2
0
29 people solved
Apr 11, 2026
Stripe logo
Stripe
Medium
Software Engineer Locked

Validate transactions with risk rules and reporting

This question evaluates skills in CSV parsing and input validation, numerical and timestamp parsing, rule-based fraud detection and behavioral feature...

Coding & Algorithms
11
1
137 people solved
Jan 17, 2026
Anthropic logo
Anthropic
Medium
Software Engineer

Parse and Reconstruct Stack Trace

Given a multi-line stack trace string from a single thread (e.g., each frame is in the form 'at Module::Function(file:line)'), design and implement a ...

Coding & Algorithms
44
0
666 people solved
Sep 6, 2025
Anthropic logo
Anthropic
Medium
Software Engineer

Detect duplicate files efficiently

You are given access to a very large file system containing file paths and read access to file contents. Design an algorithm to identify groups of fil...

Coding & Algorithms
46
0
817 people solved
Sep 6, 2025
Figma logo
Figma
Medium
Software Engineer

Design document layer with undo/redo

Design a document layer that supports applying edits and undo/redo. Implement apply(op) to mutate the document, undo() to revert the most recent commi...

Coding & Algorithms
23
0
317 people solved
Sep 6, 2025
Amazon logo
Amazon
Medium
Software Engineer

Optimize with a cache/hash map

Question This is a follow-up to your existing implementation (for example, a script that repeatedly resolves file paths or parses license strings into...

Coding & Algorithms
4
0
86 people solved
Sep 6, 2025
Google logo
Google
Hard
Software Engineer

Apply Range Overwrite Queries

You are given an integer array nums of length n and a list of range-assignment queries. Each query is a tuple (left, right, value), where left and rig...

Coding & Algorithms
22
1
233 people solved
Feb 25, 2026
Datadog logo
Datadog
Hard
Software Engineer

Implement Prefix Match Filter

Design a data structure that stores a collection of prefix strings. Then, given a list of input strings, return every string that begins with at least...

Coding & Algorithms
12
0
92 people solved
Feb 25, 2026
Faire logo
Faire
Medium
Software Engineer

Print a Centered Pascal Triangle

Given a positive integer height, generate the first height rows of Pascal's triangle and print them as a centered text triangle. Formatting requiremen...

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