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.16.2026
Showing 20 results
Role
Meta logo
Meta
Hard
Software Engineer

Connect next pointers for each tree level

You are given the root of a binary tree where each node has fields left, right, and next (initially null). For every node, set its next pointer to the...

Coding & Algorithms
2
1
27 people solved
Feb 17, 2026
Hudson River Trading logo
Hudson River Trading
Medium
Software Engineer

Implement Wordle-style word guessing solver

Implement Wordle-style word guessing solver Implement a program to solve a Wordle-style word guessing game. The game has a hidden target word of fixed...

Coding & Algorithms
19
0
267 people solved
Jul 17, 2025
IXL Learning logo
IXL Learning
Medium
Software Engineer

Identify and prevent code-breaking inputs

Identify and prevent code-breaking inputs Identify inputs and scenarios that could break your implementation and explain how you would prevent them. C...

Coding & Algorithms
5
0
59 people solved
Jul 17, 2025
TikTok logo
TikTok
Medium
Software Engineer

Implement O(1) randomized multiset

Implement O(1) randomized multiset Write code for a data structure that supports add(x), remove(x), and getRandom() in average O( 1) time where duplic...

Coding & Algorithms
2
0
41 people solved
Jul 17, 2025
Microsoft logo
Microsoft
Medium
Software Engineer

Compute sum of longest positive subarray

Compute sum of longest positive subarray Given an integer array that may contain positive and negative numbers, find the sum of the longest contiguous...

Coding & Algorithms
6
0
49 people solved
Jul 16, 2025
Voleon logo
Voleon
Hard
Software EngineerNew Grad Locked

Solve classic coding interview problems

These problems evaluate algorithmic problem-solving skills including dynamic programming and combinatorics for the egg-dropping scenario, array manipu...

Coding & Algorithms
25
0
166 people solved
Feb 15, 2026
Bytedance logo
Bytedance
Medium
Software Engineer

Count Similar Photo Groups

You are given n photos labeled 0 to n - 1 and an n x n binary matrix isSimilar. - isSimilar[i][j] = 1 means photo i and photo j are directly similar. ...

Coding & Algorithms
2
0
21 people solved
Feb 15, 2026
Microsoft logo
Microsoft
Medium
Software Engineer

Implement greedy decoding and beam search

You are given access to an auto-regressive language model that can score the next token based on a prefix. Assume: - next_logprobs(prefix_tokens) -> M...

Coding & Algorithms
8
0
134 people solved
Feb 15, 2026
Meta logo
Meta
Medium
Software Engineer

Design structure for top-K frequent elements

You are working with a large collection of items represented by integer IDs (e.g., product IDs, user IDs, etc.). Updates and queries arrive over time....

Coding & Algorithms
3
0
52 people solved
Oct 21, 2025
OpenAI logo
OpenAI
Easy
Software Engineer Locked

Simulate a Turn-Based Two-Player Game

This question evaluates API design, state management, move validation, board representation, and correctness guarantees for a turn-based game simulato...

Coding & Algorithms
11
0
78 people solved
Feb 13, 2026
Meta logo
Meta
Medium
Software Engineer AI Locked

Solve tree, array, and maze tasks

This set of problems evaluates proficiency in algorithms and data structures, covering binary tree diameter computation, array optimization for maximu...

Coding & Algorithms
2
0
26 people solved
Oct 17, 2025
Coursera logo
Coursera
Hard
Software Engineer

Implement Plurality and Runoff Voting

You are given a list of ballots for an election. Each ballot is an ordered list of distinct candidate names, from highest preference to lowest prefere...

Coding & Algorithms
1
0
22 people solved
Feb 12, 2026
Turo logo
Turo
Medium
Software Engineer

Check if a word exists in a grid

Given an m×n grid of characters and a string word, determine whether the word can be formed by sequentially adjacent cells (adjacent means horizontall...

Coding & Algorithms
4
0
57 people solved
Feb 12, 2026
Capital One logo
Capital One
Medium
Software Engineer Locked

Remove nodes with a given value

This question evaluates proficiency in singly linked list manipulation, specifically pointer handling and in-place node removal, and falls under the C...

Coding & Algorithms
18
0
176 people solved
Feb 12, 2026
Supio logo
Supio
Easy
Software Engineer

Compute max planes shot and session count

Problem 1: Max planes you can shoot before any lands You are given two equal-length arrays: - altitude[i]: the initial altitude of plane i (positive i...

Coding & Algorithms
2
0
38 people solved
Feb 12, 2026
Google logo
Google
Medium
Software Engineer Locked

Find shortest relationship path using BFS

This question evaluates proficiency in graph representations and traversal algorithms—specifically BFS and adjacency-structure construction—for comput...

Coding & Algorithms
21
0
143 people solved
Feb 12, 2026
Ziprecruiter logo
Ziprecruiter
Medium
Software Engineer Locked

Implement an in-memory storage with TTL and scans

This question evaluates implementation of an in-memory two-level key->field->value store with TTL semantics, lexicographic scans and prefix filtering,...

Coding & Algorithms
3
0
36 people solved
Feb 12, 2026
Capital One logo
Capital One
Hard
Software Engineer

Solve multiple algorithmic interview questions

Below are several independent coding tasks. For each task, implement a function that returns the required output. Assume: - Arrays/lists are 0-indexed...

Coding & Algorithms
12
0
214 people solved
Feb 12, 2026
Applied logo
Applied
Easy
Software Engineer

Find intersection of two line segments

Problem Given two 2D line segments AB and CD, determine whether they intersect. Each segment is defined by its endpoints: - A(x1, y1), B(x2, y2) - C(x...

Coding & Algorithms
2
0
29 people solved
Feb 12, 2026
Snowflake logo
Snowflake
Medium
Software Engineer Locked

Compute effective permissions on DAG and prune tree

This set of problems evaluates proficiency in graph and tree algorithms, specifically transitive state propagation and conflict resolution on a DAG (e...

Coding & Algorithms
22
0
224 people solved
Feb 12, 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