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

Implement XML tokenizer and parser with operations

Implement XML tokenizer and parser with operations You are given either (a) a raw XML-like string such as <catalog><book><author>Gambardella, Matthew<...

Coding & Algorithms
3
0
67 people solved
Aug 10, 2025
Bloomberg logo
Bloomberg
Hard
Software Engineer

Solve Stack Decoding and Fuel-Constrained Paths

You are given two independent coding tasks. Task 1: Decode a Repeated-Pattern String Given a valid encoded string, return its fully decoded form. The ...

Coding & Algorithms
3
1
27 people solved
Dec 31, 2025
Apple logo
Apple
Medium
Software Engineer

Compute island size in grid

Compute island size in grid Given an m x n binary matrix grid of 0s (water) and 1s (land), where an island is a group of 1s connected 4-directionally,...

Coding & Algorithms
8
0
61 people solved
Aug 9, 2025
Coinbase logo
Coinbase
Medium
Software Engineer

Maximize profit with transaction fee

Maximize profit with transaction fee Given an array of daily stock prices and a fixed transaction fee charged on each sell, compute the maximum profit...

Coding & Algorithms
4
0
74 people solved
Aug 8, 2025
OpenAI logo
OpenAI
Medium
Software Engineer

Implement a GPU credit manager

Implement a GPU credit manager for a compute cluster. Each user has a nonnegative credit balance that can be increased (grantCredits(user, amount)), c...

Coding & Algorithms
23
0
280 people solved
Aug 8, 2025
Google logo
Google
Medium
Software Engineer

Maintain streaming median and loosemedian

Maintain streaming median and loosemedian Design a data structure for an online stream of positive integers supporting insert (x). After each insertio...

Coding & Algorithms
9
0
64 people solved
Aug 8, 2025
TikTok logo
TikTok
Medium
Software Engineer

Implement distinct islands and sliding maxima

Implement distinct islands and sliding maxima 1) Given a binary grid where 1 represents land and 0 represents water, count how many distinct island sh...

Coding & Algorithms
2
0
38 people solved
Aug 8, 2025
Meta logo
Meta
Medium
Software Engineer Locked

Maximize Letters from Disjoint Words

This question evaluates understanding of combinatorial selection, set-based constraints, and efficient representation and enumeration of candidate sub...

Coding & Algorithms
2
0
24 people solved
Dec 30, 2025
xAI logo
xAI
Medium
Software Engineer

Versioned Key-Value Store with Nested Transactions (Begin, Commit, Rollback)

Implement an in-memory versioned key-value database that supports transactional writes with three transaction-control operations: begin (start a trans...

Coding & Algorithms
1
0
19 people solved
Aug 7, 2025
DoorDash logo
DoorDash
Medium
Software Engineer

Debug round-robin, DashMap, and simple cache

You are given a service that routes requests to a list of nodes, each marked as either available or unavailable. The pickNode() function is intended t...

Coding & Algorithms
97
0
751 people solved
Aug 7, 2025
Meta logo
Meta
Medium
Software Engineer

Check near-palindrome with one deletion

Check near-palindrome with one deletion Given a string s, determine whether it can become a palindrome after deleting at most one character. Return bo...

Coding & Algorithms
4
0
29 people solved
Aug 7, 2025
NVIDIA logo
NVIDIA
Medium
Software Engineer

Construct tree from inorder & postorder

Question LeetCode 106. Construct Binary Tree from Inorder and Postorder Traversal – Given the inorder and postorder traversal arrays of a binary tree,...

Coding & Algorithms
7
0
64 people solved
Aug 4, 2025
Google logo
Google
Medium
Software Engineer

Solve tree, graph, sliding-window problems

Question LeetCode 103. Binary Tree Zigzag Level Order Traversal – given a binary tree root, return its zigzag level-order traversal. LeetCode 207. Cou...

Coding & Algorithms
12
0
89 people solved
Aug 4, 2025
Meta logo
Meta
Medium
Software Engineer

Solve linked-list and top-K algorithm tasks

Question Given a singly linked list, return the k-th node counted from the end. Given an integer array, return the top k most frequent numbers. Given ...

Coding & Algorithms
6
0
52 people solved
Aug 4, 2025
Uber logo
Uber
Medium
Software Engineer

Build a Quadtree and Analyze a Graph

Solve the following two coding problems. 1. Build a quadtree from an image You are given an N x N matrix of integers representing an image, where N is...

Coding & Algorithms
8
0
62 people solved
Dec 28, 2025
DocuSign logo
DocuSign
Medium
Software Engineer

Implement a key-value CRUD store

Implement an in-memory key–value store that supports create, read, update, and delete operations. Expose APIs such as put(key, value), get(key), updat...

Coding & Algorithms
15
0
116 people solved
Aug 1, 2025
Anthropic logo
Anthropic
Medium
Software Engineer

Implement Python LRU cache with args and persistence

Implement an LRU cache in Python as a decorator or class that correctly supports variable-length positional arguments and keyword arguments. Ensure th...

Coding & Algorithms
46
0
315 people solved
Aug 1, 2025
Instacart logo
Instacart
Medium
Software Engineer

Design a versioned key-value store

Design a versioned key-value store Design and implement a versioned key-value store that supports set(key, value, timestamp) and get(key, timestamp) t...

Coding & Algorithms
7
0
121 people solved
Aug 1, 2025
Google logo
Google
Medium
Software Engineer

Validate course catalog dependencies

Design a function to validate an e-learning course catalog. You are given: ( 1) a set of course IDs, and ( 2) a list of prerequisite pairs (u, v) mean...

Coding & Algorithms
4
0
62 people solved
Aug 1, 2025
Figma logo
Figma
Medium
Software Engineer

Design document editor with undo/redo and batching

Design a document-editing layer that supports applying edits and undo. Implement an API with apply(Operation op), undo(), and getText(). Then add tran...

Coding & Algorithms
22
1
346 people solved
Aug 1, 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