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

Find odd-frequency element with O(1) space

You're given an integer array where exactly one value appears an odd number of times and all other values appear an even number of times. Implement a ...

Coding & Algorithms
4
0
35 people solved
Aug 9, 2025
Meta logo
Meta
Medium
Software Engineer

Solve array merge and tree flattening problems

Solve array merge and tree flattening problems 1) Given two sorted arrays, merge them into a single sorted array. Provide both an in-place approach (w...

Coding & Algorithms
1
0
33 people solved
Aug 9, 2025
Amazon logo
Amazon
Medium
Software Engineer

Count expressions reaching a target sum

Count expressions reaching a target sum Given an array of non-negative integers nums and an integer target T, assign either a + or − sign to each numb...

Coding & Algorithms
1
0
37 people solved
Aug 8, 2025
Verkada logo
Verkada
Medium
Software Engineer

Find users with access to all cameras

Given entities and relationships (user, owns, camera), (user, belongs_to, group), (group, owns, camera), and (group, belongs_to, group) where groups c...

Coding & Algorithms
7
0
66 people solved
Aug 8, 2025
xAI logo
xAI
Medium
Software Engineer

Weighted LRU Cache: Capacity Counted by Item Quantity

Design a variant of the classic least-recently-used (LRU) cache. In the classic version, the capacity limits the number of items stored. In this varia...

Coding & Algorithms
1
0
9 people solved
Aug 7, 2025
Coinbase logo
Coinbase
Medium
Software Engineer

Recommend movies by shared ratings

Recommend movies by shared ratings Write a function recommendations(user, ratings) that returns a list of movies to recommend to the given user based ...

Coding & Algorithms
6
0
71 people solved
Aug 7, 2025
dYdX logo
dYdX
Medium
Software Engineer

Solve shortest and label-similar paths

Solve shortest and label-similar paths Part A — Unweighted shortest path: You are given an undirected, unweighted graph with vertices labeled 0..n-1 a...

Coding & Algorithms
3
0
24 people solved
Aug 7, 2025
Amazon logo
Amazon
Medium
Software Engineer

Compute optimal locker placement with obstacles

Compute optimal locker placement with obstacles Given house coordinates H = {(xi, yi)} and tree coordinates T = {(xj, yj)} on a 2D integer grid, choos...

Coding & Algorithms
4
0
31 people solved
Aug 7, 2025
Amazon logo
Amazon
Medium
Software Engineer

Design a streaming median structure

Design a streaming median structure Design a data structure for a number stream that supports: add(num: int) in O(log n) time and median() -> float in...

Coding & Algorithms
2
0
33 people solved
Aug 7, 2025
Amazon logo
Amazon
Medium
Software Engineer

Implement two array-cost minimization algorithms

Implement two array-cost minimization algorithms that appeared back-to-back in an AWS SDE online assessment. Each can be solved independently. Part 1 ...

Coding & Algorithms
4
0
36 people solved
Aug 7, 2025
PayPal logo
PayPal
Medium
Software Engineer

Compare write-back vs write-through caches

Compare write-back and write-through caching policies. Explain how each handles writes, coherence, durability, latency, and bandwidth; discuss typical...

Coding & Algorithms
2
0
43 people solved
Aug 7, 2025
Chime logo
Chime
Medium
Software Engineer

Compute minimum time with task cooldowns

You are given a multiset of task types represented by uppercase letters (e.g., A, A, A, B, B, C). Each task takes exactly 1 time unit to execute. Runn...

Coding & Algorithms
33
0
283 people solved
Aug 7, 2025
Meta logo
Meta
Medium
Software Engineer

Compute binary tree diameter

Compute binary tree diameter Given the root of a binary tree, compute the tree's diameter defined as the maximum number of edges on any path between t...

Coding & Algorithms
4
0
44 people solved
Aug 7, 2025
Meta logo
Meta
Medium
Software Engineer

Compute weighted sum of nested lists

Compute weighted sum of nested lists Given a nested collection that can contain integers or other nested collections, compute the depth-weighted sum w...

Coding & Algorithms
7
0
52 people solved
Aug 7, 2025
SoFi logo
SoFi
Medium
Software Engineer

Determine reachability and minimum jumps

Determine reachability and minimum jumps Given an array of non-negative integers nums of length n, where nums[i] is the maximum number of steps you ca...

Coding & Algorithms
7
0
78 people solved
Aug 7, 2025
Bridge logo
Bridge
Medium
Software Engineer

Design Minesweeper and Optimize Click Performance

Design a Minesweeper game. At game start, initialize an m×n board by randomly placing k bombs. Implement: ( 1) printBoard(): return a human-readable s...

Coding & Algorithms
8
0
67 people solved
Aug 7, 2025
Oracle logo
Oracle
Medium
Software Engineer

Minimize sum with halving operations

Minimize sum with halving operations You are given an array of non-negative integers nums and an integer k. In one operation, choose any index i and r...

Coding & Algorithms
4
0
47 people solved
Aug 7, 2025
Salesforce logo
Salesforce
Medium
Software Engineer

Convert integer to NAF form

Question Convert a given integer into its Non-Adjacent Form (NAF) representation such that no two non-zero digits are adjacent, and prove that the res...

Coding & Algorithms
2
0
10 people solved
Aug 4, 2025
Amazon logo
Amazon
Medium
Software Engineer

Determine reachability and optimize task scheduling

Question LeetCode 780. Reaching Points: Given four integers a, b, c, d (1 <= a, b, c, d <= 1000). Starting from (a, b) you may repeatedly apply either...

Coding & Algorithms
2
0
38 people solved
Aug 4, 2025
Uber logo
Uber
Medium
Software Engineer

Perform matrix Candy Crush elimination

Question Implement a function that, given an m × n integer matrix representing colored blocks (same integers = same color), performs one round of "Can...

Coding & Algorithms
4
0
70 people solved
Aug 4, 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