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
Pinduoduo logo
Pinduoduo
Easy
Software Engineer

Find missing rank in a straight

You are given a list of 4 distinct characters representing card ranks from a 5-card straight (5 consecutive ranks) with exactly one rank missing. Rank...

Coding & Algorithms
6
0
46 people solved
Feb 19, 2026
Microsoft logo
Microsoft
Medium
Software Engineer

Solve three scheduling and array problems

In this round you are given three separate coding problems to solve. --- Problem 1: Schedule tasks with cooldown You are given: - A list of tasks, whe...

Coding & Algorithms
15
0
119 people solved
Oct 28, 2025
Jane Street logo
Jane Street
Hard
Software Engineer Locked

Optimize trade PnL table updates

This question evaluates understanding of incremental aggregation and state management, including handling overlapping predicates, caching expensive or...

Coding & Algorithms
17
0
188 people solved
Feb 18, 2026
Meta logo
Meta
Easy
Software Engineer Locked

Compute Range Sum Quickly

This question evaluates a candidate's understanding of range-sum queries, array preprocessing techniques and algorithmic complexity for answering mult...

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

Evaluate an Arithmetic Expression

This question evaluates proficiency in parsing arithmetic expressions, handling unary and binary operators, parentheses, whitespace, numeric tokenizat...

Coding & Algorithms
1
0
9 people solved
May 1, 2026
eBay logo
eBay
Medium
Software Engineer Locked

Format Words into Fixed-Width Lines

This question evaluates proficiency in string manipulation, greedy line-packing algorithms, and attention to implementation details such as spacing di...

Coding & Algorithms
3
0
27 people solved
May 1, 2026
Instacart logo
Instacart
Medium
Software Engineer

Implement prefix and suffix file search

Implement data structures and APIs to store file names and support efficient queries that match both a given prefix and suffix. Provide methods add(na...

Coding & Algorithms
6
0
113 people solved
Sep 6, 2025
Applied Intuition logo
Applied Intuition
Medium
Software Engineer

Design a coupon pricing engine

Design and implement a coupon application engine for a shopping cart. Each Item has id, category, and unitPrice. A Coupon has: applicableCategories (o...

Coding & Algorithms
10
1
136 people solved
Sep 6, 2025
OpenAI logo
OpenAI
Medium
Software Engineer

Implement KV store serialization

Implement serialization and deserialization for an in‑memory key‑value store to and from a contiguous bytes buffer. Keys are UTF‑8 strings; values may...

Coding & Algorithms
106
0
825 people solved
Sep 6, 2025
Amazon logo
Amazon
Medium
Software Engineer

Implement robust debounce and throttle in JavaScript

Implement debounce(fn, wait, options) and throttle(fn, wait, options) in JavaScript. Support leading/trailing invocation toggles, maxWait for throttle...

Coding & Algorithms
5
0
44 people solved
Sep 6, 2025
Google logo
Google
Medium
Software Engineer

Design autocomplete with Trie

Design and implement an autocomplete service backed by a prefix tree (Trie). The service stores a dynamic dictionary of words, each carrying an intege...

Coding & Algorithms
12
0
171 people solved
Sep 6, 2025
Lyft logo
Lyft
Medium
Software Engineer

Solve grid compromise spread with BFS

You are given an m×n grid representing a data center: 0 = empty rack, 1 = secure server, 2 = compromised server. Each minute, any secure server that i...

Coding & Algorithms
13
0
93 people solved
Sep 6, 2025
Harvey logo
Harvey
Medium
Software Engineer

Design an in-memory file system with limits

Design and implement an in-memory hierarchical file system. Requirements: 1) addFile(String path): Given an absolute path like "path/to/somewhere/file...

Coding & Algorithms
48
0
478 people solved
Sep 6, 2025
Airbnb logo
Airbnb
Medium
Software Engineer

Compute split-stay listing pairs

Given a set of Airbnb listings, each with availability represented as a sorted list of day integers, and a requested inclusive date range [S, E], comp...

Coding & Algorithms
55
0
539 people solved
Sep 6, 2025
Amazon logo
Amazon
Medium
Software Engineer

Find longest common contiguous subarray

Given two integer arrays A and B, find the length of the longest contiguous subarray that appears in both arrays. If multiple exist, return any one pa...

Coding & Algorithms
4
0
42 people solved
Sep 6, 2025
Meta logo
Meta
Medium
Software Engineer

Clone list with random pointers

Question You are given the head of a singly linked list where each node has two pointers: next and random. The random pointer may be null or point to ...

Coding & Algorithms
3
0
47 people solved
Sep 6, 2025
Amazon logo
Amazon
Hard
Software EngineerSenior+

Evaluate IP Access Rules

You are given a list of IPv4 access-control rules. Each rule consists of: - an action: allow or deny - a CIDR block such as 192.168.0.0/16 You are als...

Coding & Algorithms
15
0
204 people solved
Feb 17, 2026
Amazon logo
Amazon
Medium
Software EngineerIntern

Find a valid dependency order

You are given n tasks labeled from 0 to n - 1 and a list of dependency pairs dependencies, where each pair [a, b] means task b must be completed befor...

Coding & Algorithms
7
0
90 people solved
Feb 15, 2026
Airbnb logo
Airbnb
Medium
Software Engineer

Maximize profit from non-overlapping jobs

You are given up to N = 200,000 jobs; each job i has a start time s_i, end time e_i (s_i < e_i), and reward w_i. Select a subset of non-overlapping jo...

Coding & Algorithms
13
0
186 people solved
Jul 16, 2025
Moveworks logo
Moveworks
Medium
Software Engineer

Find a secret word via match feedback

Word Guessing Game (Mastermind-style) You are given a list of unique candidate words wordlist. All words have the same length L and contain only lower...

Coding & Algorithms
9
0
181 people solved
Dec 15, 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