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

Print Sentences as Table

Implement a function that formats a list of sentences as a bordered table. Given: - sentences: a list of strings - width: the fixed content width of e...

Coding & Algorithms
4
1
16 people solved
Feb 9, 2026
NVIDIA logo
NVIDIA
Medium
Software Engineer

Implement matrix transpose and KV store

The phone screen for a Linux-oriented software engineering role included multiple coding tasks: 1. Transpose an n x n matrix Given a square matri...

Coding & Algorithms
4
0
42 people solved
Feb 9, 2026
Apple logo
Apple
Medium
Software EngineerIntern

Solve mixed coding tasks from interviews

Solve the following interview-style coding problems (you may choose any programming language unless specified). Provide correct logic and handle edge ...

Coding & Algorithms
11
0
115 people solved
Feb 9, 2026
NVIDIA logo
NVIDIA
Medium
Software Engineer Locked

Solve small string and API tasks

This question evaluates proficiency in string algorithms (bracket validation and longest non-repeating substring) and practical API skills including H...

Coding & Algorithms
10
0
136 people solved
Feb 9, 2026
Asana logo
Asana
Medium
Software Engineer

Implement ASCII canvas and solve two data problems

Solve the following coding tasks. 1) ASCII Canvas / Printer Implement a small drawing engine for a fixed-size canvas of width = 10 and height = 6. - E...

Coding & Algorithms
5
1
61 people solved
Feb 8, 2026
Microsoft logo
Microsoft
Medium
Software Engineer

Fill rooms with nearest-gate distance

You are given an m×n grid representing a building floor plan: - -1 = wall/blocked cell - 0 = gate - A large positive number (e.g., INF = 2^31-1) = emp...

Coding & Algorithms
6
0
58 people solved
Feb 7, 2026
Hebbia logo
Hebbia
Medium
Software Engineer

Implement a Cache Snapshot Printer

Implement an LRU-style cache and a snapshot-printing feature. The cache stores key-value pairs and has a fixed capacity. It should support normal cach...

Coding & Algorithms
2
0
23 people solved
Feb 6, 2026
DoorDash logo
DoorDash
Hard
Software Engineer

Calculate Daily Driver Pay

You are given a one-day event log for a delivery driver. Each input record is a JSON event with fields such as order_id, event_type, timestamp, and ba...

Coding & Algorithms
6
0
76 people solved
Feb 6, 2026
NVIDIA logo
NVIDIA
Easy
Software Engineer

Find the nth prime number

Given an integer n (1-indexed), return the n-th prime number (e.g., n=1 -> 2, n=2 -> 3, n=3 -> 5). Design an algorithm that is efficient for moderatel...

Coding & Algorithms
5
0
104 people solved
Feb 6, 2026
Paradromics logo
Paradromics
Medium
Software Engineer

Compute ways to climb n steps

Implement a function that returns the number of distinct ways to reach the top of a staircase with n steps if you can climb either 1 or 2 steps at a t...

Coding & Algorithms
4
0
29 people solved
Feb 6, 2026
Google logo
Google
Easy
Software Engineer

Implement Batched Undo/Redo Layer

You are implementing a simplified document layer for a design tool. The layer stores properties as a map<string, string>. Implement a class that suppo...

Coding & Algorithms
7
0
57 people solved
Feb 4, 2026
SoFi logo
SoFi
Medium
Software Engineer

Find the second most frequent tag

You are given a list of strings in the following repeating order: [id1, name1, tag1, id2, name2, tag2, ...] So every 3 consecutive elements describe o...

Coding & Algorithms
14
0
113 people solved
Feb 4, 2026
SoFi logo
SoFi
Medium
Software Engineer

Implement a multithreaded task executor with semaphores

Design and implement a thread-safe TaskExecutor that limits concurrent work using a semaphore-like mechanism. You are given an interface similar to: -...

Coding & Algorithms
11
0
119 people solved
Feb 4, 2026
Reevo logo
Reevo
Medium
Software Engineer

Output lexicographically largest DFS traversal

You are given a graph with n nodes labeled 1..n and m edges. Assume an undirected graph unless stated otherwise. You must output a node visitation seq...

Coding & Algorithms
2
0
24 people solved
Feb 2, 2026
Reevo logo
Reevo
Medium
Software Engineer

Count all palindromic substrings

Given a string s, count how many substrings of s are palindromes. - A substring is a contiguous block of characters. - A palindrome reads the same for...

Coding & Algorithms
4
0
30 people solved
Feb 2, 2026
Ziprecruiter logo
Ziprecruiter
Medium
Software Engineer Locked

Design a voting counter for restaurants

This question evaluates familiarity with hash-table–based counting, efficient update and lookup operations, handling of ties with a deterministic tie-...

Coding & Algorithms
4
0
33 people solved
Feb 2, 2026
Notion logo
Notion
Easy
Software Engineer

Implement Table Aggregation

You are given a table represented as a list of rows. Each row contains: - key: a string identifying a group - value: an integer Write a function that ...

Coding & Algorithms
34
0
280 people solved
Feb 1, 2026
Bytedance logo
Bytedance
Easy
Software Engineer

Find Missing Ranges with Bounds

Given a sorted array of distinct integers nums and two integers lower and upper that define an inclusive interval [lower, upper], return all maximal r...

Coding & Algorithms
4
0
36 people solved
Feb 1, 2026
Meta logo
Meta
Medium
Software Engineer

Solve tree view and parentheses cleanup

Solve the following two algorithm problems. 1. Right-side view of a binary tree Given the root of a binary tree, return the values of the nodes that w...

Coding & Algorithms
6
0
43 people solved
Feb 1, 2026
Anthropic logo
Anthropic
Hard
Software Engineer Locked

Design stack with O(1) minimum query

This question evaluates understanding of stack-based data structures, constant-time operation constraints, and handling edge cases such as empty queri...

Coding & Algorithms
57
0
432 people solved
Feb 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