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.11.2026
Showing 20 results
Role
Meta logo
Meta
Medium
Software Engineer Locked

Find Shortest Unique Prefixes

This question evaluates string-processing skills and understanding of data structures for prefix management (e.g., tries), along with algorithmic effi...

Coding & Algorithms
2
0
14 people solved
Jun 18, 2026
Google logo
Google
Medium
Software Engineer Locked

Solve Three Array and Matrix Path Problems

This set of three problems evaluates algorithm design, complexity analysis, and data-structure reasoning across matrix path traversal, interval covera...

Coding & Algorithms
11
1
125 people solved
May 30, 2026
Anthropic logo
Anthropic
Hard
Software Engineer

Implement a Longest-Match Tokenizer

Implement a Longest-Match Tokenizer The source reports longest matching, unknown-token handling, and an optional unknown-merging extension. The exact ...

Coding & Algorithms
3
0
21 people solved
Jul 8, 2026
Anthropic logo
Anthropic
Hard
Software Engineer

Build a Versioned In-Memory Database

Build a Versioned In-Memory Database The source reports a four-stage in-memory database exercise but does not provide its exact method signatures. The...

Coding & Algorithms
2
0
18 people solved
Jul 8, 2026
Google logo
Google
Hard
Software Engineer

Find maximum value in huge text file

You are given the path to a very large text file on disk. The file has the following properties: - Each line contains exactly one signed 64-bit intege...

Coding & Algorithms
32
0
228 people solved
Dec 8, 2025
Hebbia logo
Hebbia
Hard
Software Engineer

Detect a Winner on a 3x3 Tic-Tac-Toe Board

Detect a Winner on a 3x3 Tic-Tac-Toe Board Implement tic_tac_toe_winner(board) for a completed or partially completed 3x3 board. Each cell is "X", "O"...

Coding & Algorithms
0
0
6 people solved
Jun 6, 2026
Waymo logo
Waymo
Medium
Software Engineer

Build an Expression That Reaches a Target

Build an Expression That Reaches a Target Given a sequence of integers and a target, insert +, -, or * between adjacent numbers and add parentheses so...

Coding & Algorithms
0
0
12 people solved
Jul 7, 2026
Capital One logo
Capital One
Medium
Software Engineer

Sort Matrix Diagonals By Their Values

Given an n x n matrix of lowercase letters, consider every diagonal that runs from bottom-left to top-right. There are 2n - 1 such diagonals. Assign e...

Coding & Algorithms
3
1
24 people solved
Jul 7, 2026
Headway logo
Headway
Medium
Software Engineer

Debug and extend obstacle-run statistics classes

Problem: Obstacle course run statistics (debug + implement) You are building software to track how long racers take to complete an obstacle course. Do...

Coding & Algorithms
29
0
223 people solved
Feb 11, 2026
StubHub logo
StubHub
Medium
Software EngineerSenior+

Build Event Notification Engine

You are implementing part of a marketing engine for an event marketplace. Assume the following data is available: - Customer: id, city, birth_month, b...

Coding & Algorithms
22
0
174 people solved
Feb 16, 2026
Bytedance logo
Bytedance
Medium
Software Engineer Locked

Elements Occurring More Than n/3 Times in a Sorted Array

This question evaluates a candidate's ability to design frequency-counting algorithms over sorted arrays, testing knowledge of majority-element patter...

Coding & Algorithms
1
0
12 people solved
Jun 24, 2026
Amazon logo
Amazon
Hard
Software EngineerSenior+

Implement a Half-Open Interval Range Module

Implement a Half-Open Interval Range Module Implement a module that tracks subsets of the real-number line using half-open intervals [left, right). Pr...

Coding & Algorithms
1
0
19 people solved
Jul 5, 2026
Bloomberg logo
Bloomberg
Medium
Software Engineer

Find invalid transactions in time-sorted input

Problem You are given a list of transaction records, already sorted in non-decreasing order by time. Each transaction is a string in the form: "name,t...

Coding & Algorithms
37
0
272 people solved
Dec 15, 2025
Citadel logo
Citadel
Medium
Software Engineer Locked

Find the Index Range of a Target in a Sorted Array

This question evaluates a candidate's grasp of binary search and its adaptation to locate boundary positions within a sorted array. It tests the abili...

Coding & Algorithms
1
0
15 people solved
Jun 22, 2026
Pinterest logo
Pinterest
Medium
Software Engineer

Reconstruct itinerary with lexicographic ties

You are given m airline tickets as directed pairs [from, to]. Build an itinerary that starts at a specified airport start (e.g., "JFK") and uses every...

Coding & Algorithms
23
0
234 people solved
Sep 6, 2025
Google logo
Google
Medium
Software Engineer

Build Prefix Lookup with a Trie

Build prefix lookup for repeated queries. Given words and query prefixes, return matching words for each query in lexicographic order. Implement: `pyt...

Coding & Algorithms
3
1
13 people solved
Jul 3, 2026
Anthropic logo
Anthropic
Medium
Software Engineer

Implement a crash-resilient LRU cache

Implement an LRU-based memoization helper with behavior similar to a standard Python LRU cache. You are given an interface like this: `python class LR...

Coding & Algorithms
722
4
5128 people solved
Mar 13, 2026
Oracle logo
Oracle
Hard
Software Engineer

Implement Queue Operations Using Two Stacks

Implement Queue Operations Using Two Stacks Process a sequence of queue operations using exactly two LIFO stacks as the queue's internal data structur...

Coding & Algorithms
1
0
22 people solved
May 1, 2026
Meta logo
Meta
Medium
Software Engineer Locked

Palindrome After Deleting at Most One Character

This question evaluates a candidate's ability to reason about two-pointer string traversal and palindrome verification under a single edit constraint....

Coding & Algorithms
1
0
16 people solved
Jun 20, 2026
Bytedance logo
Bytedance
Hard
Software Engineer Locked

Least Frequently Used (LFU) Cache

This question tests practical data structure design by requiring an O(1) implementation of a Least Frequently Used cache with tie-breaking by recency....

Coding & Algorithms
1
0
13 people solved
Jun 20, 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