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
Google logo
Google
Hard
Software Engineer Locked

Minimize maximum height along a grid path

This question evaluates algorithmic pathfinding and graph-modeling skills, specifically reasoning about grid-based route selection where the objective...

Coding & Algorithms
11
0
71 people solved
Jan 4, 2026
Google logo
Google
Medium
Software Engineer Locked

Generate all subsets (handle duplicates)

This question evaluates understanding of power-set generation and handling of duplicate elements, measuring competency in combinatorics, enumeration t...

Coding & Algorithms
8
0
66 people solved
Jan 4, 2026
Google logo
Google
Medium
Software Engineer Locked

Reconstruct original array from doubled shuffle

This question evaluates array manipulation, multiset/frequency reasoning, pairing logic, and careful handling of edge cases such as zeros and negative...

Coding & Algorithms
6
0
51 people solved
Jan 4, 2026
Amazon logo
Amazon
Medium
Software Engineer

Find shortest subarray to restore order

Given an integer array, find the shortest contiguous segment which, if sorted in ascending order, makes the entire array non-decreasing. Return the le...

Coding & Algorithms
3
0
46 people solved
Aug 14, 2025
Prodigy logo
Prodigy
Medium
Software Engineer Locked

Solve Three OA Coding Tasks

This set of problems evaluates string and array manipulation, spatial placement and packing logic, and parity-based subarray counting within the Codin...

Coding & Algorithms
1
0
22 people solved
Jan 3, 2026
Stripe logo
Stripe
Hard
Software Engineer Locked

Calculate Per-User Usage Charges

This question evaluates algorithmic data aggregation, numeric billing computations, and the ability to model proration and threshold semantics across ...

Coding & Algorithms
6
0
56 people solved
Jan 3, 2026
Microsoft logo
Microsoft
Medium
Software Engineer Locked

Check palindrome and find next larger palindrome

This question evaluates proficiency in string and numeric manipulation, specifically palindrome detection and generation of the next strictly larger n...

Coding & Algorithms
4
0
45 people solved
Jan 3, 2026
TikTok logo
TikTok
Medium
Software Engineer

Solve three algorithm tasks

Solve the following algorithm tasks and explain your approach, time complexity, and space complexity for each: 1) Fully justify text: Given an array o...

Coding & Algorithms
3
0
53 people solved
Aug 13, 2025
Meta logo
Meta
Medium
Software Engineer

Solve tree traversal and interval merging tasks

Part A — Column-wise Binary Tree Grouping: You are given the root of a binary tree. Group nodes by vertical column index, where the root has column 0,...

Coding & Algorithms
5
0
38 people solved
Aug 13, 2025
Motive logo
Motive
Medium
Software Engineer

Implement Union-Find for connectivity

Implement a Disjoint Set Union (Union-Find) data structure with path compression and union by rank. Support operations: make_set, find(x), union(x, y)...

Coding & Algorithms
2
0
38 people solved
Aug 13, 2025
Otter.Ai logo
Otter.Ai
Easy
Software Engineer AI Locked

Validate Password Against Multiple Rules

This question evaluates string processing and input validation skills, specifically character-class checks, frequency constraints, and enforcement of ...

Coding & Algorithms
2
0
29 people solved
Jan 2, 2026
Bytedance logo
Bytedance
Medium
Software Engineer Locked

Compute root-to-leaf number sum

This question evaluates understanding of binary tree data structures and the competency to aggregate values along root-to-leaf paths, combining tree t...

Coding & Algorithms
5
0
38 people solved
Jan 2, 2026
Stripe logo
Stripe
Medium
Software Engineer Locked

Assign tasks to workers with types and accounts

This question evaluates algorithmic scheduling and dynamic resource-allocation skills, including priority-queue/heap usage, time-based simulation, and...

Coding & Algorithms
5
0
75 people solved
Jan 2, 2026
OpenAI logo
OpenAI
Hard
Software Engineer Locked

Refactor a chat message processing function

This question evaluates a candidate's ability to refactor and implement clear, maintainable message-processing logic—covering code organization, comma...

Coding & Algorithms
18
0
165 people solved
Jan 2, 2026
DoorDash logo
DoorDash
Medium
Software Engineer Locked

Compute dasher pay with peak-hour query

This question evaluates a candidate's ability to perform time-interval arithmetic, prorated pay aggregation, robust handling of missing or inconsisten...

Coding & Algorithms
11
0
107 people solved
Jan 2, 2026
Snapchat logo
Snapchat
Hard
Software Engineer Locked

Implement a dictionary without built-in Dictionary

This question evaluates understanding of hash tables and low-level data-structure implementation, including hashing, collision resolution, resizing/re...

Coding & Algorithms
9
0
61 people solved
Jan 2, 2026
Snapchat logo
Snapchat
Hard
Software Engineer Locked

Check whether an integer is a power of two

This question evaluates proficiency in bit-level reasoning and integer arithmetic, specifically understanding binary representations and the propertie...

Coding & Algorithms
6
0
68 people solved
Jan 2, 2026
Visa logo
Visa
Medium
Software Engineer

Compute distinct sums from limited coins

You are given two integer arrays, denom[0..n-1] and count[0..n-1], where denom[i] > 0 is a coin denomination and count[i] >= 0 is the number of availa...

Coding & Algorithms
5
0
79 people solved
Aug 11, 2025
Amazon logo
Amazon
Medium
Software Engineer Locked

Find top-k lottery winners by spending

This question evaluates skills in selection and ordering of numeric-keyed records, covering concepts such as order statistics, deterministic tie-break...

Coding & Algorithms
7
0
64 people solved
Jan 1, 2026
Citadel logo
Citadel
Easy
Software Engineer Locked

Implement an in-memory order book API

This question evaluates understanding of in-memory data structures and API design for maintaining ordered collections with FIFO semantics, correctness...

Coding & Algorithms
5
0
106 people solved
Jan 1, 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