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

Implement a ring buffer

Implement a fixed-capacity circular buffer (ring buffer) supporting push, pop, peek, isEmpty, isFull, and size in O( 1) time using an array. Define an...

Coding & Algorithms
11
0
96 people solved
Sep 6, 2025
Snowflake logo
Snowflake
Medium
Software Engineer

Compute shortest path between tree nodes

Question You are given the root of a binary tree (not necessarily a BST) whose nodes have integer values, and two target values u and v. Implement a f...

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

Reverse sublist between equal-value nodes

Given the head of a singly linked list and a target value v that appears at least twice, reverse the sublist starting at the first node with value v a...

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

Count subarrays summing to target

Given an integer array nums and an integer target T, return the number of contiguous subarrays whose sum equals T. Provide an algorithm that runs in l...

Coding & Algorithms
3
0
33 people solved
Sep 6, 2025
OpenAI logo
OpenAI
Medium
Software Engineer

Implement compile-time function type verification

Implement a C++20 compile-time utility to verify whether a callable matches a target function type. Requirements: create a primary template is_callabl...

Coding & Algorithms
11
0
212 people solved
Sep 6, 2025
Pinterest logo
Pinterest
Medium
Software Engineer

Determine equality of arbitrarily nested sets

Implement a function that determines whether two arbitrarily nested sets are equal. Sets are unordered and contain no duplicates; elements can be inte...

Coding & Algorithms
15
0
139 people solved
Sep 6, 2025
Applied Intuition logo
Applied Intuition
Medium
Software Engineer

Implement transactional key–value store

Design and implement an in-memory key–value store that supports transactions and nested transactional blocks. Your system must process a stream of com...

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

Determine max remainders and anagram after deletions

Part 1 (Array Remainders): Given an integer array A of length n with A[i] > 0. You may choose any integer array B of length n. Define C[i] = B[i] mod ...

Coding & Algorithms
5
0
37 people solved
Sep 6, 2025
Airbnb logo
Airbnb
Medium
Software Engineer

Maximize reward by scheduling jobs

Given n jobs, each with a start time, end time, and reward, choose a subset of non-overlapping jobs to maximize total reward. Return the maximum rewar...

Coding & Algorithms
24
1
163 people solved
Sep 6, 2025
Optiver logo
Optiver
Medium
Software Engineer

Design a satellite propagation simulator

Question Implement a SatelliteNetwork class that simulates message propagation over an undirected satellite graph. The class consumes a stream of inst...

Coding & Algorithms
77
0
587 people solved
Sep 6, 2025
Bloomberg logo
Bloomberg
Medium
Software Engineer

Solve string dictionary and tree ordering

Part A — One-edit dictionary: Build a data structure supporting build(words: List[str]) and search(query: str) -> bool that returns true if and only i...

Coding & Algorithms
7
0
74 people solved
Sep 6, 2025
Bloomberg logo
Bloomberg
Medium
Software Engineer

Find root from child adjacency lists

You're given an unordered list describing a rooted n-ary tree. Each item is a record of the form {id: int, children: set<int>} listing a node's direct...

Coding & Algorithms
5
0
71 people solved
Sep 6, 2025
MathWorks logo
MathWorks
Medium
Software Engineer

Compute intersections for each segment

You are given $n$ segments on a number line. Segment $i$ is the closed interval $[\text{startsAt}[i], \text{endsAt}[i]]$ (inclusive endpoints), with $...

Coding & Algorithms
2
0
42 people solved
Sep 6, 2025
Uber logo
Uber
Medium
Software Engineer

Count subarrays with at least k fruit pairs

Given an integer array nums where each value denotes a fruit type, and an integer k: For any subarray, define a 'pair' for fruit value v if its freque...

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

Implement encoding validation and grid shortest path

Part A — Byte-encoding validation: You are given an array of integers in [0, 255] representing bytes. Determine whether the sequence encodes valid cha...

Coding & Algorithms
3
0
36 people solved
Sep 6, 2025
Amazon logo
Amazon
Medium
Software Engineer

Find minimum days to deliver all orders

You manage N delivery centers labeled 1..N and an array orderCityList where each element is the destination city of one order (city IDs are in 1..N). ...

Coding & Algorithms
9
0
61 people solved
Sep 6, 2025
Qube Research & Technologies logo
Qube Research & Technologies
Medium
Software Engineer

Implement flat_map and design wealth redistribution

Part 1 — Implement a flat_map: Design and implement an associative container flat_map backed by a sorted dynamic array of (Key, Value) pairs. Support ...

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

Solve grid path and robot navigation

Part A — Shortest path in a grid with obstacles: Given an m×n grid of 0/1 cells (0 = open, 1 = obstacle), start at (0, 0) and end at (m−1,n− 1). You m...

Coding & Algorithms
4
0
34 people solved
Sep 6, 2025
WeRide logo
WeRide
Medium
Software Engineer

Implement expression expansion to plus-only form

Given a string expression consisting only of lowercase letters (variables), '+', '*', '(', and ')', return an equivalent expression that uses only '+'...

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

Implement Luhn-based card validation and inference

Question Implement a set of utilities for credit-card validation and inference using the Luhn checksum algorithm and standard brand patterns. Brand pa...

Coding & Algorithms
3
0
44 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