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

Solve tree view and parentheses cleanup

Solve the following two algorithm problems. 1. Right-side view of a binary tree Given the root of a binary tree, return the values of the nodes that w...

Coding & Algorithms
6
0
43 people solved
Feb 1, 2026
Anthropic logo
Anthropic
Hard
Software Engineer Locked

Design stack with O(1) minimum query

This question evaluates understanding of stack-based data structures, constant-time operation constraints, and handling edge cases such as empty queri...

Coding & Algorithms
57
0
432 people solved
Feb 1, 2026
IBM logo
IBM
Medium
Software Engineer

Find minimum subarray length with k distinct integers

Given an integer array arr and an integer k, find the minimum length of a contiguous subarray that contains exactly k distinct integer values. Return ...

Coding & Algorithms
5
0
60 people solved
Jan 31, 2026
J.P. Morgan logo
J.P. Morgan
Medium
Software Engineer Locked

Solve scheduling and collision problems

This question evaluates a candidate's understanding of algorithm design and data structures for resource allocation and dynamic interaction problems, ...

Coding & Algorithms
5
0
47 people solved
Jan 29, 2026
Uber logo
Uber
Medium
Software Engineer

Find shortest jumps in circular array

You are given a circular array arr of length n. From index i, you may jump exactly arr[i] steps either to the left or to the right (wrapping around th...

Coding & Algorithms
11
0
111 people solved
Jan 28, 2026
Aurora logo
Aurora
Hard
Software Engineer

Implement a reference-counted smart pointer

Implement a minimal C++ reference-counted smart pointer similar to std::shared_ptr. Requirements: - Create a class template SharedPtr<T> that manages ...

Coding & Algorithms
3
0
71 people solved
Jan 28, 2026
Bridge.Xyz logo
Bridge.Xyz
Medium
Software Engineer

Normalize a file path

Given an absolute Unix-style file path as a string, return its canonical normalized form. Rules: - The input always starts with /. - A single . means ...

Coding & Algorithms
5
0
89 people solved
Jan 27, 2026
Apple logo
Apple
Medium
Software Engineer

Solve 15 common interview problems

Below are fifteen independent coding problems commonly discussed in software engineering interviews. For each one, write an efficient algorithm and be...

Coding & Algorithms
8
0
83 people solved
Jan 27, 2026
Amazon logo
Amazon
Medium
Software Engineer

Maximize protected population with one-step guard shifts

There are n cities in a line (1-indexed). You are given: - population[1..n]: population of each city - unit: a binary string of length n, where unit[i...

Coding & Algorithms
22
0
153 people solved
Jan 27, 2026
Amazon logo
Amazon
Medium
Software Engineer

Maximize weighted subsequence pairs with wildcards

You are given a string s of length n consisting only of characters '0', '1', and '!'. Each '!' can be replaced by either '0' or '1'. For the final bin...

Coding & Algorithms
113
0
1013 people solved
Jan 27, 2026
Bytedance logo
Bytedance
Medium
Software Engineer

Solve Search Speed and String Product

You are asked to solve two coding problems. Problem 1: Find the Minimum Constant Processing Speed You are given an array piles, where piles[i] is the ...

Coding & Algorithms
0
0
4 people solved
Jan 26, 2026
Google logo
Google
Easy
Software Engineer AI Locked

Find Feature Activation Order

This question evaluates graph-algorithms and dependency-resolution skills, including reasoning about prerequisite relationships, ordering constraints,...

Coding & Algorithms
9
0
62 people solved
Jan 26, 2026
Meta logo
Meta
Easy
Software Engineer Locked

Solve four OA coding problems

This set of four problems evaluates core algorithmic competencies including array manipulation and counting in sorted arrays, resource-constrained opt...

Coding & Algorithms
2
0
50 people solved
Jan 26, 2026
Amazon logo
Amazon
Hard
Software Engineer

Find Affected Services After Shutdown

You are given a set of services and their dependency relationships. The input is a hash map where each key is a service name, and the value is a list ...

Coding & Algorithms
36
0
357 people solved
Jan 26, 2026
Snapchat logo
Snapchat
Medium
Software Engineer

Implement a thread-safe rate limiter

Design and implement a per-user API rate limiter. Requirements: - Method: boolean allow(String userId, long nowMillis) returns whether the request is ...

Coding & Algorithms
5
0
64 people solved
Jan 26, 2026
Snapchat logo
Snapchat
Medium
Software Engineer

Compute minimum escape time in a grid

You are given a 2D floor plan grid. Each cell is one of: - . empty space (walkable) - # wall/blocked (not walkable) - P a person - E an exit A person ...

Coding & Algorithms
7
0
55 people solved
Jan 26, 2026
Zipline logo
Zipline
Medium
Software Engineer

Compute Maximum Area Under Adjacent Bars

You are given an array heights of n non-negative integers. Each value represents the height of a vertical bar of width 1, and the bars are placed next...

Coding & Algorithms
2
0
20 people solved
Jan 25, 2026
F5Networks logo
F5Networks
Medium
Software EngineerIntern

Find Top Hashtags

You are given two arrays of length n: - tweets[i]: the content of the i-th tweet as a string - timestamps[i]: the publish time of the i-th tweet as an...

Coding & Algorithms
1
0
18 people solved
Jan 25, 2026
Snapchat logo
Snapchat
Medium
Software Engineer

Determine Whether a Word Transformation Exists

Given a beginWord, an endWord, and a list of valid words wordList, determine whether it is possible to transform beginWord into endWord. Rules: - Each...

Coding & Algorithms
1
0
31 people solved
Jan 25, 2026
Whatnot logo
Whatnot
Medium
Software Engineer

Build a Tic-Tac-Toe App

Implement a simple Tic-Tac-Toe mobile app that can be completed in a 45-minute coding interview. Requirements: - Display a 3x3 board. - Support two lo...

Coding & Algorithms
0
0
10 people solved
Jan 24, 2026

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