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
Airbnb logo
Airbnb
Hard
Software Engineer Locked

Maximize sum with no adjacent tree nodes

This question evaluates understanding of tree-based dynamic programming and stateful optimization for selecting non-adjacent nodes, testing algorithmi...

Coding & Algorithms
12
0
91 people solved
Jan 22, 2026
Airbnb logo
Airbnb
Hard
Software Engineer Locked

Find a split-stay booking across listings

This question evaluates understanding of interval coverage and algorithmic problem solving, specifically reasoning about continuous date ranges, split...

Coding & Algorithms
7
0
84 people solved
Jan 22, 2026
Capital One logo
Capital One
Medium
Software EngineerSenior+

Count Numbers With Odd Zeros

Given an array a of non-negative integers, count how many elements contain an odd number of digit '0' in their decimal representation. Notes: - Treat ...

Coding & Algorithms
13
0
106 people solved
Jan 20, 2026
Netflix logo
Netflix
Hard
Software Engineer Locked

Design command executor with undo

This question evaluates understanding of the command pattern, state and history management, failure handling, and appropriate data structure use for i...

Coding & Algorithms
9
0
70 people solved
Jan 20, 2026
Uber logo
Uber
Hard
Software Engineer Locked

Find robots matching obstacle-distance signature

This question evaluates spatial reasoning on 2D grids, the ability to compute distance signatures to nearest obstacles, and careful handling of bounda...

Coding & Algorithms
10
0
148 people solved
Jan 20, 2026
Ramp logo
Ramp
Medium
Software Engineer Locked

Build a simplified Wordle game in React

This question evaluates a candidate's competency in React-based front-end development, covering component design, state management, asynchronous HTTP ...

Coding & Algorithms
20
0
160 people solved
Jan 18, 2026
Meta logo
Meta
Medium
Software Engineer Locked

Maximize score in 15-sum card game

This question evaluates algorithmic problem-solving in combinatorial search, state-space optimization, and memoization by asking for the maximum achie...

Coding & Algorithms
9
0
110 people solved
Jan 18, 2026
Airbnb logo
Airbnb
Medium
Software Engineer

Solve and optimize menu combo DP

Given up to N different menu items, each with a unit price, and a list of combo offers where each offer specifies quantities for some items and a tota...

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

Design menu DP and optimize for three items

You are given a restaurant menu with n single items and m combo offers. Each single item i has a price p[i] (in cents). Each combo j specifies nonnega...

Coding & Algorithms
5
2
40 people solved
Sep 6, 2025
Meta logo
Meta
Medium
Software Engineer

Solve word count, node, segmentation, stock tasks

You have four tasks: 1) Count words with explicit rules: Given a text document, return the number of words. First define precisely what qualifies as a...

Coding & Algorithms
3
0
41 people solved
Sep 6, 2025
Apple logo
Apple
Medium
Software Engineer

Implement DFS for connected components

Given an undirected graph with n nodes (1 ≤ n ≤ 200, 000) and an edge list, implement depth-first search to compute (a) the number of connected compon...

Coding & Algorithms
10
0
61 people solved
Sep 6, 2025
BlackRock logo
BlackRock
Medium
Software Engineer

Solve hierarchy distance and digit-square convergence

You have two independent tasks: A) Organization hierarchy distance Given a list of (employee, manager) pairs that form a complete hierarchy (a single ...

Coding & Algorithms
3
0
66 people solved
Sep 6, 2025
Anthropic logo
Anthropic
Medium
Software Engineer

Implement file deduplication at scale

Write a program to deduplicate files in a very large directory tree. Identify groups of identical files without loading entire files into memory. Outl...

Coding & Algorithms
99
0
760 people solved
Sep 6, 2025
Bloomberg logo
Bloomberg
Medium
Software Engineer

Group words into anagram lists

Given an array of strings, group the words into lists of anagrams and return the collection of groups in any order. For example, ["abc", "cab", "edf"]...

Coding & Algorithms
6
0
88 people solved
Sep 6, 2025
Adobe logo
Adobe
Medium
Software Engineer

Maximize pay by flipping k rest days

Given integers BasePay and Bonus, a binary string schedule of length n where '1' means work and '0' means rest, and an integer k, you may change up to...

Coding & Algorithms
13
1
97 people solved
Sep 6, 2025
Credit Genie logo
Credit Genie
Medium
Software Engineer

Implement and analyze number-pattern function

Implement a function print_number_lines(n) that prints n lines, where the i-th line contains the integers from 1 to i separated by spaces (e.g., n=3 p...

Coding & Algorithms
11
0
149 people solved
Sep 6, 2025
Uber logo
Uber
Medium
Software Engineer

Find leftmost point of maximum brightness

You are given an array of lights, where each light is [p, r] representing a lamp centered at coordinate p on the real number line with radius r, illum...

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

Simulate fixed-shape tiling on a grid

You are given an empty n-by-m grid and a list of tile patterns, patterns[0..k-1]. Each pattern is a binary matrix (1 = filled cell, 0 = hole) and must...

Coding & Algorithms
10
0
97 people solved
Sep 6, 2025
Meta logo
Meta
Medium
Software Engineer

Count palindrome substrings in a string

Given a lowercase ASCII string s, count the number of substrings that are palindromes and return the count. Implement an O(n^ 2) solution using expand...

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

Solve grid path and top‑k frequency

Part A — Grid Reachability with Obstacles: Given an m×n matrix of 0s and 1s where 0 indicates a passable cell and 1 indicates a blocked cell, starting...

Coding & Algorithms
4
0
31 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