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.11.2026
Showing 12 results
Role
Instacart logo
Instacart
Medium
Software Engineer

Compute average customer waiting time

Compute average customer waiting time You are given n customer orders; each order i = [a_i, p_i] where a_i is the arrival time and p_i is the preparat...

Coding & Algorithms
6
0
82 people solved
Jul 15, 2025
DoorDash logo
DoorDash
Medium
Software Engineer

Debug and refactor a legacy module

Given a legacy module named DasherPicker and a failing test suite, systematically debug and refactor the code while following a provided review checkl...

Coding & Algorithms
40
0
310 people solved
Jul 15, 2025
Meta logo
Meta
Medium
Software Engineer

Evaluate arithmetic expression without parentheses

Evaluate arithmetic expression without parentheses Write evaluate(s: string) to compute the value of an arithmetic expression containing non-negative ...

Coding & Algorithms
3
0
38 people solved
Jul 15, 2025
Meta logo
Meta
Medium
Software Engineer

Implement weighted random index picker

Implement weighted random index picker Design a class WeightedPicker that is initialized with an array of positive integer weights w and supports pick...

Coding & Algorithms
2
0
24 people solved
Jul 15, 2025
Amazon logo
Amazon
Medium
Software Engineer

Design 2D DP on a DAG

Design 2D DP on a DAG Given a directed acyclic graph G(V, E) with N nodes, M edges, a designated source s, and an integer L, design a 2D dynamic progr...

Coding & Algorithms
6
0
54 people solved
Jul 15, 2025
Amazon logo
Amazon
Medium
Software Engineer

Merge overlapping intervals

Merge overlapping intervals Given a list of half-open numeric intervals [start, end), merge all overlapping or contiguous intervals and return a list ...

Coding & Algorithms
2
1
44 people solved
Jul 15, 2025
Anthropic logo
Anthropic
Medium
Software Engineer

Find the Slowest Function from Profiler Events

You are given a time-ordered profiler event log for a single-threaded program. Each event is one of: - START functionName timestamp: execution enters ...

Coding & Algorithms
1
0
14 people solved
Jun 17, 2025
xAI logo
xAI
Easy
Software Engineer

In-Memory Key-Value Database with Nested Transactions

In-Memory Key-Value Database with Nested Transactions Implement an in-memory key-value database that processes a sequence of commands and supports nes...

Coding & Algorithms
1
0
8 people solved
Jun 7, 2025
xAI logo
xAI
Easy
Software Engineer

Design a Fixed-Capacity Least-Recently-Used Cache

Design a Fixed-Capacity Least-Recently-Used Cache Design and implement a cache with a fixed maximum capacity that evicts the least recently used entry...

Coding & Algorithms
0
0
6 people solved
Jun 7, 2025
Google logo
Google
Hard
Software Engineer

Delete a Node From a Search Tree

Given the root of a binary search tree and an integer key, delete the node whose value equals key if it exists. Return the possibly new root while pre...

Coding & Algorithms
7
0
46 people solved
Apr 29, 2025
Meta logo
Meta
Hard
Software Engineer

Compute tree right view and target-sum subarrays

You are given two separate programming tasks. --- Task 1: Right-side view of a binary tree You are given the root of a binary tree. Imagine standing o...

Coding & Algorithms
3
0
28 people solved
Mar 23, 2025
Amazon logo
Amazon
Medium
Software EngineerIntern

Find Most Frequent Values

Given an integer array nums and an integer k, return the k distinct values that occur most frequently in nums. The result may be returned in any order...

Coding & Algorithms
1
0
14 people solved
Mar 18, 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