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

Compute total active time per Twitter Space

This question evaluates a candidate's ability to perform event-log sessionization and time-interval aggregation across users and spaces, testing skill...

Coding & Algorithms
18
0
131 people solved
Feb 11, 2026
Anthropic logo
Anthropic
Medium
Software Engineer Locked

Implement an in-memory DB with TTL backup/restore

This question evaluates implementation and reasoning skills for an in-memory nested key→field→value store with TTL-based expirations, snapshot backup/...

Coding & Algorithms
80
2
874 people solved
Feb 11, 2026
Chalk logo
Chalk
Medium
Software Engineer Locked

Compute rainwater accumulation on a height grid

This question evaluates understanding of grid-based graph traversal, flow simulation to local minima, and the ability to reason about state propagatio...

Coding & Algorithms
23
0
371 people solved
Feb 11, 2026
Microsoft logo
Microsoft
Hard
Software Engineer Locked

Solve cache, grid path, and substring problems

This multipart question evaluates algorithmic problem-solving and data structure design skills, covering a capacity-bounded cache with eviction behavi...

Coding & Algorithms
3
0
45 people solved
Feb 11, 2026
Apple logo
Apple
Hard
Software Engineer Locked

Count subarrays with sum equals k

This question evaluates a candidate's competency in array algorithms and reasoning about contiguous subarray sums, including correct handling of negat...

Coding & Algorithms
23
0
173 people solved
Feb 11, 2026
Snapchat logo
Snapchat
Hard
Software Engineer Locked

Find minimum-latency path across dependent services

This question evaluates understanding of graph algorithms and shortest-path computation on weighted directed graphs, including handling cycles, multip...

Coding & Algorithms
4
0
51 people solved
Feb 11, 2026
Uber logo
Uber
Medium
Software Engineer Locked

Compute sums and maximum path in a tree

This question evaluates understanding and implementation of binary tree traversal, recursion, aggregation of node values, and computation of maximum s...

Coding & Algorithms
5
0
75 people solved
Feb 11, 2026
Vmware logo
Vmware
Medium
Software Engineer Locked

Compute iterative sliding-window sum reduction

This question evaluates algorithmic problem-solving and array-manipulation skills, focusing on sliding-window and iterative reduction concepts within ...

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

Design structure for insert and k-th largest

This question evaluates data-structure design and algorithmic efficiency for dynamic order-statistics over a multiset (duplicates allowed), focusing o...

Coding & Algorithms
12
0
86 people solved
Feb 11, 2026
Amazon logo
Amazon
Easy
Software EngineerIntern Locked

Solve array duplicates and two-type subarray

These problems evaluate proficiency with array manipulation, frequency and membership reasoning, and algorithmic analysis of time and space complexity...

Coding & Algorithms
10
0
91 people solved
Feb 11, 2026
Google logo
Google
Hard
Software Engineer Locked

Find minimum threshold enabling grid path

This question evaluates a candidate's understanding of grid pathfinding, reachability under constraints, and algorithmic optimization, focusing on ski...

Coding & Algorithms
10
0
154 people solved
Feb 11, 2026
Anthropic logo
Anthropic
Hard
Software Engineer

Find duplicate files and apply image operations

Part A — Find duplicate files by content You are given a list of directory records. Each record is a string describing a directory path followed by on...

Coding & Algorithms
115
0
773 people solved
Oct 15, 2025
Google logo
Google
Medium
Software EngineerNew Grad

Count Good Numbers up to a Limit

Count Good Numbers up to a Limit A positive integer is good when all of the following hold: 1. Its decimal representation contains no digit 0. 2. No d...

Coding & Algorithms
1
1
10 people solved
Apr 26, 2026
Carvana logo
Carvana
Easy
Software Engineer

Spell Out a Nonnegative Integer

Given a nonnegative integer, return its English words representation. Implement a function that handles numbers from 0 through 2,147,483,647 inclusive...

Coding & Algorithms
0
0
10 people solved
Apr 26, 2026
Voleon logo
Voleon
Medium
Software Engineer

Count queen attacks on points with blockers

You are given positions on an (unbounded) 2D integer grid. - queens: coordinates of queens - points: query coordinates A queen attacks along 8 directi...

Coding & Algorithms
52
0
392 people solved
Dec 9, 2025
Voleon logo
Voleon
Medium
Software Engineer

Validate whether a binary string is good

You are given a binary string s consisting only of characters '0' and '1'. Define a good string recursively by the grammar: - '0' is a good string. - ...

Coding & Algorithms
42
0
329 people solved
Dec 9, 2025
Scale AI logo
Scale AI
Medium
Software Engineer

Compute party time blocks per neighborhood

You are given two datasets: 1. Parties: - party_id (string or integer) - start_timestamp (e.g., UNIX timestamp or datetime) - end_timestamp (...

Coding & Algorithms
29
0
266 people solved
Dec 8, 2025
Databricks logo
Databricks
Medium
Software Engineer

Implement a rate-limited hit counter

You are designing a hit counter that records the number of hits received in the past 5 minutes. Implement a class HitCounter with the following method...

Coding & Algorithms
20
0
327 people solved
Dec 8, 2025
Airbnb logo
Airbnb
Medium
Software Engineer

Print Sentences as Table

Implement a function that formats a list of sentences as a bordered table. Given: - sentences: a list of strings - width: the fixed content width of e...

Coding & Algorithms
3
1
16 people solved
Feb 9, 2026
Bloomberg logo
Bloomberg
Medium
Software Engineer Locked

Predict most likely next word from training data

This question evaluates proficiency in frequency-based language modeling and data-structure design, focusing on token sequence analysis, frequency cou...

Coding & Algorithms
12
0
118 people solved
Feb 9, 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