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

Implement precise string-based decimal addition

Given two non-empty strings representing decimal numbers (e.g., "123.456" and "6234.42432"), implement a function that returns their exact sum as a st...

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

Apply bitwise tricks for performance

For an integer-heavy inner loop, propose bit-level optimizations that reduce branches and memory traffic: e.g., population count usage, fast modulo by...

Coding & Algorithms
22
0
162 people solved
Sep 6, 2025
Citi logo
Citi
Medium
Software Engineer

Implement bidirectional Dijkstra for shortest paths

Given a directed or undirected graph with non‑negative edge weights, design and implement bidirectional Dijkstra (“double Dijkstra”) to find the short...

Coding & Algorithms
3
0
71 people solved
Sep 6, 2025
Uber logo
Uber
Medium
Software Engineer

Find next and closest palindromes

Given a non-negative integer represented as a string n (no leading zeros unless n == "0"), return the smallest palindromic integer strictly greater th...

Coding & Algorithms
6
0
66 people solved
Sep 6, 2025
Meta logo
Meta
Medium
Software Engineer

Find shortest path and compare BFS vs DFS

Given an unweighted graph (directed or undirected), explain how to find the shortest path between two nodes without writing code. Describe the algorit...

Coding & Algorithms
5
0
51 people solved
Sep 6, 2025
Apple logo
Apple
Medium
Software Engineer

Compute minimum required meeting rooms

Given a list of meeting time intervals [start, end) for many events, determine the minimum number of rooms required so no meetings overlap in the same...

Coding & Algorithms
6
0
62 people solved
Sep 6, 2025
Disney logo
Disney
Medium
Software Engineer

Solve grid shortest path with BFS

Given a 2D grid containing 0s (open cells) and 1s (walls), and coordinates for a start (sr, sc) and a target (tr, tc), return the length of the shorte...

Coding & Algorithms
5
0
51 people solved
Sep 6, 2025
TikTok logo
TikTok
Medium
Software Engineer

Implement binary tree in-order traversal

Given the root of a binary tree, return the in-order ordering of its node values. Implement both a recursive solution and an iterative solution using ...

Coding & Algorithms
5
0
40 people solved
Sep 6, 2025
Citadel logo
Citadel
Medium
Software Engineer

Find earliest common meeting slot

Given K participants' calendars, each a list of busy intervals [start, end) within a working window [workStart, workEnd], and a meeting duration d min...

Coding & Algorithms
22
0
175 people solved
Sep 6, 2025
Pinterest logo
Pinterest
Medium
Software Engineer

Design a violation log analyzer

You are given an append-only list of violation events as tuples (id: string, policy: string, date: ISO-8601 string). Build an in-memory "Violation Log...

Coding & Algorithms
41
0
281 people solved
Sep 6, 2025
LinkedIn logo
LinkedIn
Medium
Software Engineer

Solve six algorithmic problems

Answer the following independent algorithmic prompts. For each, explain your approach, justify data structures, analyze time/space complexity, and pro...

Coding & Algorithms
7
0
136 people solved
Sep 6, 2025
DoorDash logo
DoorDash
Medium
Software Engineer

Debug using logs and allocate tasks

You inherit a service where unit tests pass locally, but production logs show intermittent errors. Without a debugger, outline a step-by-step debuggin...

Coding & Algorithms
18
0
199 people solved
Sep 6, 2025
DoorDash logo
DoorDash
Medium
Software Engineer

Design dynamic connectivity with alive nodes

Design a data structure to maintain an undirected graph of N nodes, where each node has a boolean 'alive' flag. Support the following operations effic...

Coding & Algorithms
7
0
110 people solved
Sep 6, 2025
Amazon logo
Amazon
Medium
Software Engineer

Find minimum time for irrecoverable password

A password is a string s of length n. A virus attacks positions in a 1-indexed order given by a permutation attackOrder[1..n]. At second t (1 <= t <= ...

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

Maximize credits with limited skips

You are given n warehouses with inventories inventory[0..n-1], and two dispatch amounts: you dispatch dispatch1 units first each turn, then your co-wo...

Coding & Algorithms
2
0
27 people solved
Sep 6, 2025
DoorDash logo
DoorDash
Medium
Software Engineer

Implement and compare round-robin and consistent hashing

Implement a round-robin load balancer that selects among service nodes, skipping unavailable nodes and wrapping around correctly. Fix typical pitfalls...

Coding & Algorithms
11
0
178 people solved
Sep 6, 2025
Airbnb logo
Airbnb
Medium
Software Engineer

Design mutable sum-tree with fast queries

You're given a rooted, mutable tree. Each leaf node stores an integer value. Each internal node's value equals the sum of its immediate children's val...

Coding & Algorithms
21
0
183 people solved
Sep 6, 2025
Meta logo
Meta
Medium
Software Engineer

Fill rooms with nearest gate distances

You are given an m×n integer grid representing rooms, where -1 is a wall, 0 is a gate, and INF (a large sentinel such as 2^31− 1) is an empty room. Fo...

Coding & Algorithms
1
0
27 people solved
Sep 6, 2025
Akuna Capital logo
Akuna Capital
Medium
Software Engineer

Compute min operations to transform integers

Given integers A and B, transform A into B using the minimum number of operations. Allowed operations: ( 1) subtract 1 from the current value; ( 2) mu...

Coding & Algorithms
3
0
51 people solved
Sep 6, 2025
Walmart Labs logo
Walmart Labs
Medium
Software Engineer

Compute maximum simultaneous bus routes

You are given N bus routes, each defined by a start time (inclusive) and an end time (exclusive). Compute the maximum number of routes running simulta...

Coding & Algorithms
5
1
35 people solved
Sep 6, 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