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.11.2026
Showing 20 results
Role
Harvey logo
Harvey
Hard
Software Engineer

Merge Exact-Word Highlights and Rank Their Citations

Highlight Exact Source Phrases and Attach Citations You are given a text string and an indexed list of source phrases. All input tokens are alphanumer...

Coding & Algorithms
36
0
305 people solved
Jul 27, 2026
Google logo
Google
Easy
Software Engineer

Count Rectangle Coverage on a Grid

Count Rectangle Coverage on a Grid You are given an n x n grid initially filled with zeroes and a list of inclusive rectangular updates. Each rectangl...

Coding & Algorithms
43
2
345 people solved
Jul 21, 2026
Google logo
Google
Medium
Software Engineer

Deduplicate and Order Batch and Streaming Logs

Deduplicate and Order Batch and Streaming Logs A log is (timestamp, message), where timestamp is an integer and message is compared exactly. Input ord...

Coding & Algorithms
60
1
399 people solved
Jul 14, 2026
Amazon logo
Amazon
Medium
Software EngineerSenior+

Find Paths Across a Weighted Binary Grid

Find Paths Across a Weighted Binary Grid Given an m by n binary grid, a cell with value 1 is traversable and 0 is blocked. Movement is allowed up, dow...

Coding & Algorithms
15
0
225 people solved
Jul 17, 2026
Two Sigma logo
Two Sigma
Medium
Software Engineer

Match Limit Orders with Price-Time Priority

Implement an in-memory limit-order matcher that processes orders in arrival order and returns both the executed trades and the final resting order boo...

Coding & Algorithms
6
0
42 people solved
Jul 31, 2026
Decagon logo
Decagon
Hard
Software Engineer

Count Legal Tic-Tac-Toe Games from the Empty Board

Count Legal Tic-Tac-Toe Games from the Empty Board Start with an empty 3-by-3 Tic-Tac-Toe board. X always moves first, and the players alternate placi...

Coding & Algorithms
18
0
142 people solved
Jul 17, 2026
Airbnb logo
Airbnb
Easy
Software Engineer

Implement a Removable Nested-List Iterator

Implement a Removable Nested-List Iterator Implement an iterator over a mutable array of integer arrays. Traversal goes left to right within each inne...

Coding & Algorithms
13
0
129 people solved
Jul 14, 2026
Capital One logo
Capital One
Medium
Software Engineer

Reorder a String by Alternating Its Left and Right Ends

Reorder a String by Alternating Its Left and Right Ends Given a string text, construct a new string by taking characters in this order: 1. first chara...

Coding & Algorithms
18
3
145 people solved
Jul 21, 2026
Upstart logo
Upstart
Medium
Software Engineer

Find the Minimum Absolute Difference

Find the Minimum Absolute Difference Implement minimum_absolute_difference(values). Given at least two integers, return the smallest absolute differen...

Coding & Algorithms
3
0
59 people solved
Jul 27, 2026
Figma logo
Figma
Medium
Software Engineer

Convert Leveled Rich-Text Tokens into Nested Lists

Convert Leveled Rich-Text Tokens into Nested Lists Problem Implement read_rich_text(tokens). Each token is a pair (level, text) in document order, whe...

Coding & Algorithms
7
0
56 people solved
Jul 21, 2026
Google logo
Google
Medium
Software Engineer

Intervals with Exactly X Concurrent Meetings

Intervals with Exactly X Concurrent Meetings Given half-open meeting intervals and an integer X, return every maximal half-open time interval during w...

Coding & Algorithms
2
0
30 people solved
Aug 1, 2026
Google logo
Google
Medium
Software Engineer

Determine All Players with Fixed Rankings

Determine All Players with Fixed Rankings There are N players and directed match results. A pair [a, b] means player a defeated player b. Results are ...

Coding & Algorithms
1
0
28 people solved
Aug 1, 2026
Uber logo
Uber
Medium
Software EngineerIntern

Last Truck to Leave a One-Dimensional Lane

Last Truck to Leave a One-Dimensional Lane Implement last_exit_time(lane_length, positions, velocities). Distinct trucks start at integer positions st...

Coding & Algorithms
24
0
429 people solved
Jul 3, 2026
Google logo
Google
Medium
Software Engineer

Count Connected Clusters of Two-Dimensional Points

Count Connected Clusters of Two-Dimensional Points Problem Implement count_clusters(points, radius). points is a list of two-dimensional integer coord...

Coding & Algorithms
2
1
34 people solved
Jul 27, 2026
Amazon logo
Amazon
Hard
Software Engineer

Merge Overlapping Intervals with a Sweep

Merge Overlapping Intervals with a Sweep Implement merge_intervals(intervals) for closed integer intervals [start, end] with start <= end. Return thei...

Coding & Algorithms
1
0
12 people solved
Aug 11, 2026
Databricks logo
Databricks
Hard
Software EngineerSenior+

Implement Generalized Tic-Tac-Toe

Implement Generalized Tic-Tac-Toe Implement a TicTacToe class for two players on an m by n board with a configurable winning length k. `text TicTacToe...

Coding & Algorithms
15
0
151 people solved
Jul 7, 2026
OpenAI logo
OpenAI
Medium
Software Engineer

Return the Lexicographically Smallest Topological Order

Return the Lexicographically Smallest Topological Order Problem Implement topologicalOrder(nodeCount, edges) -> order. The directed graph contains nod...

Coding & Algorithms
3
0
23 people solved
Aug 1, 2026
Google logo
Google
Medium
Software Engineer

Minimize Direction Violations in a Directed Road Network

Minimize Direction Violations in a Directed Road Network There are n nodes numbered from 0 through n - 1. Every input edge [u, v] has an original dire...

Coding & Algorithms
49
4
332 people solved
Jul 5, 2026
Apple logo
Apple
Medium
Software Engineer

Find the K Closest Pairs in a Sorted Array

Implement k_closest_pairs(nums, k) for a strictly increasing sorted array. Consider every pair of indices (i, j) with i < j. Its distance is nums[j] -...

Coding & Algorithms
0
1
11 people solved
Aug 9, 2026
Pinterest logo
Pinterest
Hard
Software Engineer

Maintain an Escape-Room Leaderboard

Design and implement an EscapeRoomGame for a fixed set of players and rooms 0 through R. - advance(player_id) moves that player forward by one room in...

Coding & Algorithms
1
0
18 people solved
Aug 2, 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