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

Implement a Constant-Time LRU Cache

Implement a Constant-Time LRU Cache Implement a fixed-capacity least-recently-used cache. The captured source identifies an LRU cache coding problem b...

Coding & Algorithms
3
0
21 people solved
Apr 28, 2026
Google logo
Google
Medium
Software Engineer

Find the Longest Consecutive Path in a Binary Tree

Given a binary tree, return the length of the longest downward path where each child value is exactly one greater than its parent value. Nodes have va...

Coding & Algorithms
0
0
6 people solved
Apr 28, 2026
Google logo
Google
Medium
Software Engineer

Return the Most Frequent Values in an Array

Given a non-empty integer array, return the k values that appear most frequently. Ties are broken by smaller value first. Implement: `python def top_k...

Coding & Algorithms
2
1
16 people solved
Apr 28, 2026
TikTok logo
TikTok
Medium
Software Engineer Locked

Solve common string/DP/stack problems

This set of four coding tasks evaluates proficiency in string algorithms, dynamic programming, sliding-window techniques, monotonic stack usage, and t...

Coding & Algorithms
8
0
109 people solved
Feb 12, 2026
Rippling logo
Rippling
Hard
Software Engineer

Compute org height and minimal CEO promotions

You are given an organization chart with n employees labeled 1..n. Employee 1 is the CEO (root). The reporting relationships are given as two integer ...

Coding & Algorithms
33
0
499 people solved
Feb 12, 2026
Google logo
Google
Easy
Software Engineer Locked

Compute decayed power levels in a graph

This question evaluates knowledge of graph algorithms and distance-based propagation, testing concepts such as shortest-path distance computation, mul...

Coding & Algorithms
18
0
151 people solved
Feb 12, 2026
Uber logo
Uber
Medium
Software Engineer Locked

Choose root to minimize edge reversals

This question evaluates understanding of directed versus undirected graph representations, tree rooting, and optimization of edge orientations, testin...

Coding & Algorithms
6
0
110 people solved
Feb 11, 2026
Google logo
Google
Medium
Software EngineerNew Grad

Count Good Numbers up to a Limit

Count Good Numbers up to a Limit A positive integer is good when all of the following hold: 1. Its decimal representation contains no digit 0. 2. No d...

Coding & Algorithms
1
1
10 people solved
Apr 26, 2026
Lead logo
Lead
Medium
Software Engineer Locked

Solve friend recommendations and time-versioned maps

This question evaluates the candidate's ability to design and implement specialized data structures for graph-based friend recommendation logic and ti...

Coding & Algorithms
0
0
6 people solved
May 26, 2026
Meta logo
Meta
Medium
Software EngineerSenior+ AI

Build a FastAPI summarization service

Implement a minimal but production-ready FastAPI service for text summarization. Requirements: - Expose an endpoint POST /summarize. - The request bod...

Coding & Algorithms
5
0
53 people solved
Jan 19, 2026
BlackRock logo
BlackRock
Easy
Software Engineer

Design paint editor with undo/redo

Implement a simplified Paint editor that supports drawing on a 2D canvas and reverting changes using undo and redo operations. Canvas You are given a ...

Coding & Algorithms
9
0
89 people solved
Dec 8, 2025
TikTok logo
TikTok
Medium
Software Engineer Locked

Count distinct island shapes in a grid

This question evaluates understanding of grid-based connectivity and shape equivalence, exercising skills in graph traversal, spatial normalization, a...

Coding & Algorithms
6
0
64 people solved
Jan 18, 2026
Meta logo
Meta
Medium
Software EngineerSenior+ AI

Solve Maze and Suffix Problems

Solve the following two coding problems. Problem A: Find the shortest path through a maze with keys and doors You are given a 2D grid representing a m...

Coding & Algorithms
1
0
18 people solved
Apr 25, 2026
Meta logo
Meta
Medium
Software Engineer Locked

Compute Exclusive Execution Times

This question evaluates understanding of nested function execution and precise exclusive-time accounting derived from chronological logs, emphasizing ...

Coding & Algorithms
0
0
15 people solved
May 25, 2026
Google logo
Google
Medium
Software EngineerIntern Locked

Match people to questions using tags and priorities

This question evaluates competencies in bipartite matching and combinatorial optimization, along with practical data-structure design for scalable tag...

Coding & Algorithms
11
0
189 people solved
Dec 27, 2025
Anthropic logo
Anthropic
Medium
Software Engineer

Design an in-memory banking service

Design an in-memory banking service supporting timestamped operations and edge-case semantics. Implement: ( 1) create_account(id, t): Create a new acc...

Coding & Algorithms
105
1
928 people solved
Sep 6, 2025
Coinbase logo
Coinbase
Medium
Software Engineer

Implement Composable Range Iterators

Implement an iterator library: range(start, end, step= 1) supporting forward/backward iteration, inclusive/exclusive endpoints, negative steps, and ov...

Coding & Algorithms
13
0
177 people solved
Sep 6, 2025
DoorDash logo
DoorDash
Medium
Software Engineer

Implement image carousel with comments and upvotes

Implement an image carousel that supports: 1) cycling forward/backward and autoplay with a configurable interval; 2) a per-image comment thread with c...

Coding & Algorithms
5
0
81 people solved
Sep 6, 2025
CloudKitchens logo
CloudKitchens
Medium
Software Engineer

Answer static and streaming Top-K queries

Top-K in static and streaming settings (3 variants) You are given integers and asked to answer Top-K queries under three different scenarios. Variant ...

Coding & Algorithms
11
0
136 people solved
Aug 20, 2025
Apple logo
Apple
Medium
Software Engineer

Vertical Order Traversal of a Binary Tree

Vertical Order Traversal of a Binary Tree You are given the root of a binary tree. Return the vertical order traversal of its nodes' values — that is,...

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