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

Add Dramatic Punctuation to Text

Add Dramatic Punctuation to Text Implement add_drama(text). Preserve all whitespace exactly. For each maximal non-whitespace token, first replace ever...

Coding & Algorithms
3
0
29 people solved
Jul 27, 2026
Anthropic logo
Anthropic
Medium
Software Engineer

Banking System Simulation

Banking System Simulation You are building an in-memory banking system that is driven by a time-ordered stream of operations. Implement the system so ...

Coding & Algorithms
6
0
59 people solved
Jun 23, 2026
Pinterest logo
Pinterest
Medium
Software Engineer

Select the Nearest Eligible Elevator

Select the Nearest Eligible Elevator You are given a list of elevators. Each elevator has a current integer floor and a state: "up", "down", or "idle"...

Coding & Algorithms
14
0
103 people solved
May 12, 2026
Upstart logo
Upstart
Medium
Software Engineer

Count Words in Lexicographic Order

Count Words in Lexicographic Order Implement word_counts(words) for a list of lowercase words. Return a list of (word, count) pairs sorted in ascendin...

Coding & Algorithms
3
0
30 people solved
Jul 27, 2026
Point72 logo
Point72
Hard
Software Engineer

Simulate a Deterministic Finite Automaton

Implement a deterministic finite automaton simulator for the alphabet {a, b}. The automaton has states numbered from 0 through stateCount - 1. The tra...

Coding & Algorithms
0
0
7 people solved
Aug 1, 2026
Pinterest logo
Pinterest
Medium
Software Engineer

List Unallocated Experiment Buckets

List Unallocated Experiment Buckets Problem An experiment system divides traffic into numbered buckets. Implement findUnallocatedBuckets(bucketCount, ...

Coding & Algorithms
1
0
11 people solved
Jul 23, 2026
Walmart Labs logo
Walmart Labs
Hard
Software Engineer

Implement a Range Module with Add, Query, and Remove

Process Range Tracking Operations Implement processRanges(operations) -> queryResults. The tracker is initially empty. Process every operation from le...

Coding & Algorithms
1
0
17 people solved
Jul 16, 2026
Ai2 logo
Ai2
Medium
Software EngineerSenior+

Maintain an Out-of-Order Step Progress Tree

Maintain an Out-of-Order Step Progress Tree Each progress event contains: `text timestamp: integer step_id: integer parent_step_id: integer or null ru...

Coding & Algorithms
1
0
19 people solved
Jul 20, 2026
Two Sigma logo
Two Sigma
Medium
Software EngineerNew Grad

Allocate IPO Shares and Split a Weighted Tree

Two Allocation and Tree Problems Implement both independent parts. Part A - IPO Share Allocation Each bid is [user_id, requested_shares, price, timest...

Coding & Algorithms
3
0
53 people solved
Jun 28, 2026
eBay logo
eBay
Medium
Software Engineer

Search a Rotated Sorted Array in One Binary-Search Pass

Search a Rotated Sorted Array in One Binary-Search Pass Problem Implement searchRotated(values, target) -> index. values was formed by taking a strict...

Coding & Algorithms
0
0
9 people solved
Jul 26, 2026
Uber logo
Uber
Medium
Software EngineerIntern

Kth Employee Reached in an Ordered Hierarchy

Kth Employee Reached in an Ordered Hierarchy Implement kth_recipients(boss, queries). Employees are numbered 0 through n - 1. boss[0] == -1; for every...

Coding & Algorithms
11
0
155 people solved
Jul 3, 2026
Amazon logo
Amazon
Hard
Software Engineer AI

Circular Drone Hub Delivery Route

A drone delivery network is laid out as a ring of n hubs, numbered 0, 1, ..., n - 1. Each hub is connected by a direct air corridor to its two neighbo...

Coding & Algorithms
5
0
60 people solved
Jun 28, 2026
Amazon logo
Amazon
Easy
Software EngineerIntern

Determine Whether One Person Can Attend Every Meeting

Determine Whether One Person Can Attend Every Meeting Problem Implement canAttendAllMeetings(intervals) -> canAttend. Each meeting is a half-open inte...

Coding & Algorithms
0
0
6 people solved
Aug 1, 2026
Visa logo
Visa
Medium
Software EngineerSenior+

Count Connected Groups in a Relationship Matrix

Count Connected Groups in a Relationship Matrix Problem Implement countConnectedGroups(related). related is an n x n relationship matrix encoded as an...

Coding & Algorithms
0
0
5 people solved
Aug 3, 2026
Google logo
Google
Medium
Software Engineer Locked

Sliding Window Average After Dropping the Largest Values

Compute one average per fixed-size sliding window after removing exactly the largest k values, counting duplicates separately. Support negative number...

Coding & Algorithms
19
1
145 people solved
May 23, 2026
Asana logo
Asana
Medium
Software Engineer

Return the K Closest Points with Deterministic Ties

Return the K Closest Points with Deterministic Ties Implement k_closest(points, target, k). Each point and the target are integer pairs. Return exactl...

Coding & Algorithms
0
0
4 people solved
Aug 6, 2026
Netflix logo
Netflix
Medium
Software Engineer

Find the Longest Run of One Character

Find the Longest Run of One Character Problem Implement longestIdenticalRun(text) -> length. Return the maximum number of consecutive positions contai...

Coding & Algorithms
0
0
6 people solved
Jul 31, 2026
eBay logo
eBay
Medium
Software Engineer

Return the K Smallest Values from Sorted Arrays

Return the K Smallest Values from Sorted Arrays Problem Implement kSmallestFromSortedArrays(arrays, takeCount) -> values. Each inner array is sorted i...

Coding & Algorithms
0
0
8 people solved
Jul 26, 2026
Google logo
Google
Medium
Software EngineerNew Grad Locked

Generate Every Ordered Sum Using Ones and Twos

Generate every ordered string of ones and twos whose digit values sum to a target integer, with no duplicates and lexicographic output. The problem te...

Coding & Algorithms
17
1
100 people solved
Jun 17, 2026
Nuro logo
Nuro
Medium
Software Engineer

Maximize Revenue With Two Contiguous Delivery Routes

Problem Houses lie in a line. values[i] is the nonnegative payment for delivering to house i. Two delivery robots are available. Robot one can serve a...

Coding & Algorithms
2
0
29 people solved
Jul 24, 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