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 20 results
Role
Confluent logo
Confluent
Medium
Software Engineer

Solve constrained monster traversal

Solve constrained monster traversal You are given a directed graph with n rooms labeled 0..n-1; each room i contains a monster with health hp[i] ≥ 0. ...

Coding & Algorithms
7
0
116 people solved
Jul 27, 2025
Meta logo
Meta
Medium
Software Engineer

Compute longest increasing path in a matrix

Compute longest increasing path in a matrix Given an m × n integer matrix, return the length of the longest path of strictly increasing values, where ...

Coding & Algorithms
1
0
26 people solved
Jul 27, 2025
Meta logo
Meta
Medium
Software Engineer

Traverse levels selecting nodes meeting a predicate

Traverse levels selecting nodes meeting a predicate Given the root of a binary tree and a predicate P(value) that returns true for certain node values...

Coding & Algorithms
2
0
17 people solved
Jul 27, 2025
Meta logo
Meta
Medium
Software Engineer

Find minimum and most frequent number efficiently

Find minimum and most frequent number efficiently Given an unsorted integer array, write functions to: (a) find the minimum value; and (b) find any va...

Coding & Algorithms
2
0
22 people solved
Jul 27, 2025
Meta logo
Meta
Medium
Software Engineer

Find k most frequent elements, discuss O(n)

Find k most frequent elements, discuss O(n) Given an integer array nums of length n and an integer k (where 1 ≤ k ≤ the number of distinct values in n...

Coding & Algorithms
4
0
33 people solved
Jul 27, 2025
Amazon logo
Amazon
Medium
Software Engineer

Solve frequency sort and all-pairs sum

Solve frequency sort and all-pairs sum Task 1 — Frequency-based string reorder: Given a string s containing ASCII characters, return a new string whos...

Coding & Algorithms
3
1
33 people solved
Jul 27, 2025
Adyen logo
Adyen
Medium
Software Engineer

Implement LRU and target-sum combinations

Implement LRU and target-sum combinations Design and implement the following: 1) An in-memory cache with Least Recently Used (LRU) eviction supporting...

Coding & Algorithms
16
0
116 people solved
Jul 26, 2025
Meta logo
Meta
Medium
Software Engineer

Produce asymmetric side views of a binary tree

Produce asymmetric side views of a binary tree Given a binary tree, output two sequences: ( 1) Left-bottom-up view: for each depth, the first node vis...

Coding & Algorithms
2
0
43 people solved
Jul 26, 2025
Meta logo
Meta
Medium
Software Engineer

Remove adjacent duplicate groups repeatedly

Remove adjacent duplicate groups repeatedly Given a string s, repeatedly delete any maximal contiguous group of identical characters whose length is a...

Coding & Algorithms
3
0
37 people solved
Jul 26, 2025
Snowflake logo
Snowflake
Medium
Software Engineer

Transform tree with subtree sum mapping

Transform tree with subtree sum mapping You are given the roots of two complete binary trees T1 and T2 that have identical structure (same shape and n...

Coding & Algorithms
7
0
59 people solved
Jul 26, 2025
Oracle logo
Oracle
Medium
Software Engineer

Find shortest subarray meeting target sum

Find shortest subarray meeting target sum Given an integer array nums (values may be negative) and an integer T, return the length of the shortest non...

Coding & Algorithms
3
0
57 people solved
Jul 26, 2025
Kneron logo
Kneron
Medium
Software Engineer

Compute sum of minima with removals

Compute sum of minima with removals You are given an array weights[0..n-1] of positive integers representing product weights in a line. Repeat until n...

Coding & Algorithms
2
0
21 people solved
Jul 26, 2025
Amazon logo
Amazon
Medium
Software Engineer

Solve median extremes and segment flips

Solve median extremes and segment flips Part A — Sliding-window median extremes: - Input: an integer k (1 ≤ k ≤ n) and an array nums of length n. - Fo...

Coding & Algorithms
2
0
25 people solved
Jul 26, 2025
Citadel logo
Citadel
Medium
Software Engineer

Explain hash maps and solve array intersection

1) Explain the internal implementation of a hash map: underlying array/bucket layout, hash function choice, collision resolution strategies (separate ...

Coding & Algorithms
12
0
107 people solved
Jul 26, 2025
Pinterest logo
Pinterest
Medium
Software Engineer

Find minimum shuttle transfers

Find minimum shuttle transfers You are given a collection of shuttle loops, each represented by a list of stop IDs that the loop visits in perpetuity....

Coding & Algorithms
9
0
93 people solved
Jul 26, 2025
Anthropic logo
Anthropic
Medium
Software Engineer

Find and remove duplicate files

Given a directory tree that may not fit in memory, detect and optionally remove duplicate files. Define the algorithm, including how you handle very l...

Coding & Algorithms
22
0
166 people solved
Jul 26, 2025
Optiver logo
Optiver
Medium
Software Engineer

Count the Days Between Two Dates

Count the Days Between Two Dates You are given two calendar dates as strings in YYYY-MM-DD format. Return the number of days between them as a non-neg...

Coding & Algorithms
0
0
8 people solved
Jul 23, 2025
Two Sigma logo
Two Sigma
Medium
Software Engineer

Maximum Group of Pairwise Strangers in an Acquaintance Tree

You are given a social network of n people, labeled 0 through n - 1. For some pairs of people, it is known that the two people in the pair know each o...

Coding & Algorithms
0
0
5 people solved
Jul 23, 2025
Two Sigma logo
Two Sigma
Hard
Software Engineer

Compute maximum currency exchange rate

Compute maximum currency exchange rate You are given a set of currencies and the direct exchange rates between some pairs of them. Each direct exchang...

Coding & Algorithms
17
0
147 people solved
Jul 20, 2025
Applied Intuition logo
Applied Intuition
Medium
Software Engineer

Design event timeout detector

Design and implement an event-timeout detector for a job scheduler. Inputs: a global timeout T and a stream of events; each event has {event_id, type ...

Coding & Algorithms
8
0
115 people solved
Jul 17, 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