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
Amazon logo
Amazon
Medium
Software EngineerNew Grad

Compute Edit Distance

Compute Edit Distance Given two strings, return the minimum number of single-character operations needed to transform the first string into the second...

Coding & Algorithms
41
1
345 people solved
Jul 15, 2026
Google logo
Google
Easy
Software Engineer Locked

Implement string formatting and request tracking tasks

This multi-part question evaluates string manipulation, numeric formatting, character-mapping validation under 180° rotation, and event-tracking/order...

Coding & Algorithms
31
0
267 people solved
Feb 11, 2026
Anthropic logo
Anthropic
Hard
Software Engineer

Convert Stack Samples into Trace Events

Convert Stack Samples into Trace Events The source reports converting sampled call stacks into trace events but does not provide the exact tuple forma...

Coding & Algorithms
2
0
36 people solved
Jul 8, 2026
Pinterest logo
Pinterest
Medium
Software Engineer

Collect Pins from Reachable Boards

Collect Pins from Reachable Boards The interview report names a board-and-pin coding problem whose intended approach was breadth-first search but does...

Coding & Algorithms
1
0
19 people solved
Jul 2, 2026
Rippling logo
Rippling
Medium
Software Engineer AI Locked

Courier Delivery Cost Tracker

This question evaluates a candidate's ability to design a stateful, multi-part class that combines interval tracking with incremental balance accounti...

Coding & Algorithms
2
0
32 people solved
Jun 10, 2026
Pinterest logo
Pinterest
Medium
Software Engineer

Settle debts with minimal transactions

You are given a list of debts among a set of people, expressed as triples (debtor, creditor, amount) (equivalently (payer, payee, amount)), where each...

Coding & Algorithms
40
0
411 people solved
Sep 6, 2025
Zoox logo
Zoox
Medium
Software Engineer

Three Array Problems for Trading Geometry and Grouping

Problem Implement solve(prices, numbers, people, group_size) and return an object with three fields. 1. max_profit: the maximum profit from buying onc...

Coding & Algorithms
1
0
25 people solved
May 11, 2026
Mixpanel logo
Mixpanel
Medium
Software Engineer

Group Events by an Ordered Attribute List

Group Events by an Ordered Attribute List Problem Implement groupEventCounts(fieldNames, events, groupBy) -> resultJson. Each row in events is a porta...

Coding & Algorithms
2
0
16 people solved
May 11, 2026
Amazon logo
Amazon
Medium
Software EngineerSenior+ Locked

Compute the Median After Each Stream Insertion

Compute the median after every insertion into an integer stream without repeatedly sorting the full prefix. Practice maintaining balanced data structu...

Coding & Algorithms
2
0
25 people solved
May 29, 2026
Databricks logo
Databricks
Medium
Software EngineerSenior+

Check Whether Two Strings Are Anagrams

Problem Implement are_anagrams(a, b). Return true exactly when a and b contain the same lowercase English letters with the same multiplicities, possib...

Coding & Algorithms
2
0
32 people solved
Apr 7, 2026
Valon Mortgage logo
Valon Mortgage
Hard
Software Engineer

Implement an in-memory SQL-like table

Implement a simplified in-memory SQL-like database for a single table. You should support the following operations on a table with a fixed schema (a l...

Coding & Algorithms
13
0
241 people solved
Feb 17, 2026
Anthropic logo
Anthropic
Hard
Software Engineer

Calculate Streaming Token Usage Costs

Calculate Streaming Token Usage Costs Implement a usage calculator for language-model API requests. Input and output tokens have different prices, and...

Coding & Algorithms
2
0
18 people solved
Jul 8, 2026
Bloomberg logo
Bloomberg
Hard
Software EngineerSenior+

Detect Recent Duplicate Records with Bounded Memory

Detect Recent Duplicate Records with Bounded Memory A time-ordered stream contains records [id, text, title, timestamp]. Detect records whose exact (t...

Coding & Algorithms
2
0
24 people solved
Jul 1, 2026
Google logo
Google
Medium
Software Engineer Locked

Simulate room assignments for scheduled meetings

This question evaluates scheduling and event-simulation skills, including time-ordered processing, resource allocation with tie-breaking, and efficien...

Coding & Algorithms
14
0
136 people solved
Jan 6, 2026
Jane Street logo
Jane Street
Medium
Software Engineer Locked

Collapsible Code Editor: Brace Matching and Toggle

This question tests stack-based parsing and stateful data structure design through a two-part brace-matching and collapsible editor problem. It evalua...

Coding & Algorithms
3
0
39 people solved
Jun 4, 2026
Google logo
Google
Medium
Software Engineer

Find A Threshold-Limited Path With Minimum Required Safety

You are given an undirected graph with n nodes, a list of weighted edges, a start node, an end node, and a safety threshold. Each edge has a safety co...

Coding & Algorithms
9
1
43 people solved
Jul 6, 2026
Datadog logo
Datadog
Easy
Software Engineer

Implement buffered file writer with concurrency support

You are given a simple file writer class that writes data directly to disk: `cpp class FileWriter { public: // Append data to the file on disk imm...

Coding & Algorithms
68
0
728 people solved
Dec 2, 2025
Glean logo
Glean
Medium
Software Engineer Locked

Implement a Byte Pair Encoding (BPE) Tokenizer

This question evaluates practical understanding of tokenization algorithms and string processing, specifically the iterative merge-based approach used...

Coding & Algorithms
2
0
26 people solved
Jun 14, 2026
Oracle logo
Oracle
Medium
Software Engineer

Count Requests Dropped by Multiple Time Windows

Count Requests Dropped by Multiple Time Windows Implement count_dropped(timestamps) for nondecreasing integer seconds. For zero-based request index i,...

Coding & Algorithms
0
0
2 people solved
Jul 26, 2026
Oracle logo
Oracle
Medium
Software Engineer

Compress Consecutive Characters with Run Lengths

Compress Consecutive Characters with Run Lengths Implement compress_runs(s) and return the compressed string. The input contains ASCII letters only. S...

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