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

Find minimum days to deliver all orders

You manage N delivery centers labeled 1..N and an array orderCityList where each element is the destination city of one order (city IDs are in 1..N). ...

Coding & Algorithms
9
0
61 people solved
Sep 6, 2025
Qube Research & Technologies logo
Qube Research & Technologies
Medium
Software Engineer

Implement flat_map and design wealth redistribution

Part 1 — Implement a flat_map: Design and implement an associative container flat_map backed by a sorted dynamic array of (Key, Value) pairs. Support ...

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

Solve grid path and robot navigation

Part A — Shortest path in a grid with obstacles: Given an m×n grid of 0/1 cells (0 = open, 1 = obstacle), start at (0, 0) and end at (m−1,n− 1). You m...

Coding & Algorithms
4
0
34 people solved
Sep 6, 2025
WeRide logo
WeRide
Medium
Software Engineer

Implement expression expansion to plus-only form

Given a string expression consisting only of lowercase letters (variables), '+', '*', '(', and ')', return an equivalent expression that uses only '+'...

Coding & Algorithms
2
0
45 people solved
Sep 6, 2025
Stripe logo
Stripe
Medium
Software Engineer

Implement Luhn-based card validation and inference

Question Implement a set of utilities for credit-card validation and inference using the Luhn checksum algorithm and standard brand patterns. Brand pa...

Coding & Algorithms
3
0
44 people solved
Sep 6, 2025
Tesla logo
Tesla
Medium
Software Engineer

Calculate trapped water between elevation bars

Given an array of non-negative integers representing the heights of unit-width vertical bars, compute the total water retained after rainfall. Start b...

Coding & Algorithms
13
0
119 people solved
Sep 6, 2025
Google logo
Google
Medium
Software EngineerNew Grad

Solve Banana Speed and Interval Merge

During two technical phone screens for a new graduate software engineering role, the candidate was asked to solve two coding problems: minimum eating ...

Coding & Algorithms
9
0
58 people solved
Jan 27, 2025
Google logo
Google
Medium
Software EngineerIntern

Solve Grid and Counting Problems

A software engineering intern phone screen included two coding tasks: 1. Count islands in a grid Given an m x n grid of characters where '1' re...

Coding & Algorithms
1
0
13 people solved
Jan 25, 2025
Two Sigma logo
Two Sigma
Medium
Software Engineer

Implement a Hash Map with Separate Chaining and Resizing

Implement a hash map data structure from scratch, without using any built-in hash table types from your language's standard library (no dict, HashMap,...

Coding & Algorithms
0
0
9 people solved
Aug 26, 2025
Tesla logo
Tesla
Medium
Software Engineer

Solve classic array, graph, and parsing problems

Implement and analyze solutions to the following independent tasks: 1) Expression evaluator: Given a string s of digits, '+', '-', '*', '/', and space...

Coding & Algorithms
9
0
67 people solved
Aug 14, 2025
Meta logo
Meta
Medium
Software Engineer

Find missing ranges in interval

Given a sorted unique integer array nums and two integers lower and upper defining an inclusive interval [lower, upper], return all missing ranges not...

Coding & Algorithms
2
0
31 people solved
Aug 14, 2025
Roblox logo
Roblox
Medium
Software Engineer

Find largest digit-sum bucket size

You are given two integers low and high (inclusive). Define s(x) as the sum of the decimal digits of x. For every integer x in [low, high], place x in...

Coding & Algorithms
14
0
156 people solved
Aug 13, 2025
TikTok logo
TikTok
Medium
Software Engineer

Solve array and tree algorithm challenges

Solve the following three algorithmic tasks: 1) Unique triplet sum: Given an integer array nums and an integer target (default 0), return all unique t...

Coding & Algorithms
4
0
39 people solved
Aug 13, 2025
Databricks logo
Databricks
Medium
Software Engineer

Design BFS to detect forced win in Tic-Tac-Toe

You are given an n×n Tic-Tac-Toe–like board and a target k (1 ≤ k ≤ n). From the current board state and the player to move, design an algorithm to de...

Coding & Algorithms
18
0
166 people solved
Aug 13, 2025
Flexport logo
Flexport
Medium
Software Engineer

Validate and restore IPv4 addresses

Design and implement the following IPv4 tasks. a) Validate dotted IPv4: Write a function isValidIPv4 (s) that returns true if s is a valid dotted-deci...

Coding & Algorithms
5
0
50 people solved
Aug 13, 2025
Remitly logo
Remitly
Medium
Software Engineer

Solve k-Nearest Places by Latitude/Longitude

Given a set of geographic coordinates and a query point, return the k nearest locations. Describe how you compute great-circle distance (e.g., Haversi...

Coding & Algorithms
6
0
54 people solved
Aug 13, 2025
ZipHQ logo
ZipHQ
Medium
Software Engineer

Compute maximum sum in a tree without adjacency

Given a tree where each node has an integer value, select a subset of nodes to maximize the sum under the constraint that if you choose a node, you ca...

Coding & Algorithms
21
0
189 people solved
Aug 12, 2025
Meta logo
Meta
Medium
Software Engineer

Remove runs of length at least k

Given a string s and an integer k (k >= 2), repeatedly remove every maximal contiguous group of the same character whose length is at least k, deletin...

Coding & Algorithms
2
0
24 people solved
Aug 12, 2025
Robinhood logo
Robinhood
Medium
Software Engineer

Design a referral leaderboard with chain-based counts

Design and implement a function that generates a referral leaderboard for a platform, given two equal-length arrays rh_users and new_users representin...

Coding & Algorithms
20
0
229 people solved
Aug 12, 2025
Airbnb logo
Airbnb
Medium
Software Engineer

Maximize tokens from nested crates

You are given n crates, each either locked or unlocked. Each crate i contains: an integer tokens[i]; a list of keys that can unlock other crates; and ...

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