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

Validate word abbreviation and reconcile two abbreviations

Validate word abbreviation and reconcile two abbreviations Implement a function isValidAbbreviation(word: string, abbr: string) that returns true if a...

Coding & Algorithms
3
0
35 people solved
Jul 15, 2025
Amazon logo
Amazon
Medium
Software Engineer

Find first unique character

Find first unique character Given a lowercase/uppercase alphanumeric string s, return the index of the first character that appears exactly once; if n...

Coding & Algorithms
3
0
32 people solved
Jul 15, 2025
Jane Street logo
Jane Street
Medium
Software Engineer

Merge Two Insertion Diffs in Linear Time

A text-editing system represents changes to a document as insertion diffs. An insertion diff is a set of (position, value) pairs, where each pair mean...

Coding & Algorithms
1
0
19 people solved
Jul 11, 2025
xAI logo
xAI
Easy
Software Engineer

Design a Fixed-Capacity Least-Recently-Used Cache

Design a Fixed-Capacity Least-Recently-Used Cache Design and implement a cache with a fixed maximum capacity that evicts the least recently used entry...

Coding & Algorithms
0
0
7 people solved
Jun 7, 2025
Optiver logo
Optiver
Medium
Software Engineer

Maximum Currency Conversion Rate

Maximum Currency Conversion Rate You are given N currency exchange rate pairs. Each pair is a triple (from_currency, to_currency, rate), meaning that ...

Coding & Algorithms
0
0
9 people solved
Jan 31, 2025
Jane Street logo
Jane Street
Hard
Software Engineer

Decode an Encrypted Paragraph Tree

Decode an Encrypted Paragraph Tree A document is stored as a tree of paragraphs. Each node holds a paragraph text — a string of lowercase English lett...

Coding & Algorithms
0
0
19 people solved
Sep 14, 2022
Jane Street logo
Jane Street
Hard
Software Engineer

Snake Game: Minimum Moves to Reach the Apple

Snake Game: Minimum Moves to Reach the Apple You are simulating the classic Snake game on a grid with R rows and C columns. Cells are identified as (r...

Coding & Algorithms
1
0
14 people solved
Sep 14, 2022
Jane Street logo
Jane Street
Hard
Software Engineer

Evaluate a Tokenized Arithmetic Expression

Evaluate a Tokenized Arithmetic Expression You are given an arithmetic expression that has already been tokenized for you — you do not need to write a...

Coding & Algorithms
2
0
19 people solved
Sep 14, 2022
Jane Street logo
Jane Street
Easy
Software Engineer

Stack Machine Interpreter with Typed Int and String Values

You are building an interpreter for a simple stack machine. The machine has a single stack, and every value on the stack is one of exactly two primiti...

Coding & Algorithms
1
0
11 people solved
Apr 28, 2022
NVIDIA logo
NVIDIA
Hard
Software EngineerSenior+

Determine Whether One Point Can Reach Another

Determine Whether One Point Can Reach Another You start at a point (sx, sy) with positive integer coordinates. From (x, y), one move may transform the...

Coding & Algorithms
1
0
21 people solved
Jul 16, 2026
NVIDIA logo
NVIDIA
Hard
Software EngineerSenior+

Count Substrings with No Repeated Characters

Count Substrings with No Repeated Characters Given a lowercase English string s, return the number of nonempty contiguous substrings whose characters ...

Coding & Algorithms
1
0
22 people solved
Jul 16, 2026
Asana logo
Asana
Medium
Software Engineer

Find the K Closest Points to the Origin

Find the K Closest Points to the Origin Given points, a list of distinct integer coordinate pairs [x, y], and an integer k, return the k points closes...

Coding & Algorithms
2
1
18 people solved
Jul 16, 2026
Whatnot logo
Whatnot
Hard
Software Engineer

Remove All Adjacent Duplicate Pairs

Remove All Adjacent Duplicate Pairs Given a string s, repeatedly remove pairs of equal adjacent characters. A removal can make a new equal pair adjace...

Coding & Algorithms
1
0
12 people solved
Jul 14, 2026
Vanta logo
Vanta
Medium
Software Engineer

Implement Adjacent-Line Uniq

Implement Adjacent-Line Uniq Implement the core behavior of the Unix-style uniq utility: combine consecutive equal lines into one run. The interview r...

Coding & Algorithms
1
0
14 people solved
Jul 13, 2026
Netflix logo
Netflix
Medium
Software Engineer

Simulate a TTL Cache with LRU Eviction

Simulate a TTL Cache with LRU Eviction Implement a deterministic simulator for a cache that combines per-key expiration with a fixed-capacity least-re...

Coding & Algorithms
1
0
15 people solved
Jul 11, 2026
Grammarly logo
Grammarly
Easy
Software Engineer

Recover a Rooted Tree from Depth-Annotated Preorder

Recover a Rooted Tree from Depth-Annotated Preorder A rooted, ordered tree was serialized by preorder traversal. Before each node value, the serialize...

Coding & Algorithms
2
0
17 people solved
Jul 6, 2026
Meta logo
Meta
Medium
Software EngineerSenior+

Choose the Cheapest Round Trip

Choose the Cheapest Round Trip You are given two arrays of equal length. departure[i] is the cost of departing on day i, and return_cost[j] is the cos...

Coding & Algorithms
1
1
17 people solved
Jul 6, 2026
Upstart logo
Upstart
Easy
Software Engineer

Report Where a Value Appears

Report Where a Value Appears Given a target and an even-length integer list, return four binary flags describing whether the target occurs: 1. at an e...

Coding & Algorithms
0
0
9 people solved
Jul 5, 2026
Upstart logo
Upstart
Easy
Software Engineer

Compute a Point Set's Bounding Rectangle

Compute a Point Set's Bounding Rectangle Given two-dimensional integer points, return the smallest axis-aligned rectangle containing every point. Repr...

Coding & Algorithms
1
0
14 people solved
Jul 5, 2026
Amazon logo
Amazon
Easy
Software Engineer

Implement Regular Expression Matching

Implement Regular Expression Matching Determine whether an entire input string matches a pattern containing lowercase letters and two special symbols:...

Coding & Algorithms
1
0
16 people solved
Jul 4, 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