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

Solve top-K and string rotation match

Solve top-K and string rotation match 1) Given an unsorted array of integers and an integer k, return the k largest elements in descending order. Impl...

Coding & Algorithms
2
0
41 people solved
Jul 26, 2025
Coinbase logo
Coinbase
Medium
Software Engineer

Design order stream with state transitions

Design order stream with state transitions Implement an in-memory order stream service with operations: add(order), delete(order_id), pause(order_id),...

Coding & Algorithms
4
0
80 people solved
Jul 26, 2025
Palantir logo
Palantir
Medium
Software Engineer

Solve two algorithm problems from a menu

Choose two problems from an algorithms menu (arrays, strings, hash maps, graphs). For each: 1) state clarifying assumptions, 2) implement a correct so...

Coding & Algorithms
13
0
129 people solved
Jul 26, 2025
Apple logo
Apple
Medium
Software Engineer Locked

Find k Smallest Pair Sums

This question evaluates skills in algorithm design, working with sorted arrays, pairing and ordering elements, and analyzing time and space complexity...

Coding & Algorithms
9
0
65 people solved
Dec 22, 2025
Amazon logo
Amazon
Medium
Software Engineer

Design a no-repeat top-frequency music player

Design and implement a music player that receives song lists from new users and returns songs to play in frequency order without repeating a song in t...

Coding & Algorithms
4
0
52 people solved
Mar 22, 2025
Salesforce logo
Salesforce
Medium
Software Engineer

Solve array duplicate flags and binary swaps

Problem 1: Flag duplicates on the left and right You are given an integer array nums of length n. For each index i, determine: 1. Left-duplicate: whet...

Coding & Algorithms
26
0
187 people solved
Dec 17, 2025
Hudson River Trading logo
Hudson River Trading
Medium
Software Engineer

Implement Wordle-style word guessing solver

Implement Wordle-style word guessing solver Implement a program to solve a Wordle-style word guessing game. The game has a hidden target word of fixed...

Coding & Algorithms
19
0
267 people solved
Jul 17, 2025
Stripe logo
Stripe
Medium
Software Engineer

Implement tiered shipping calculator

Implement tiered shipping calculator Implement in JavaScript a shipping-cost calculator with three progressively richer pricing models based on a conf...

Coding & Algorithms
4
0
37 people solved
Jul 17, 2025
Amazon logo
Amazon
Medium
Software Engineer

Solve interval deletion and GCD subarray problems

This Amazon online assessment contains two independent algorithm problems. For each, return the requested value, describe an efficient algorithm, and ...

Coding & Algorithms
6
1
48 people solved
Jul 16, 2025
Abnormal Security logo
Abnormal Security
Medium
Software Engineer

Design a duplicate-file removal algorithm

Design a duplicate-file removal algorithm Your filesystem contains millions of photos. Duplicates are strictly byte-identical files (no ML/CV similari...

Coding & Algorithms
10
0
120 people solved
Jul 16, 2025
OpenAI logo
OpenAI
Medium
Software Engineer

Implement a serializable key-value store

Implement in C++ an in-memory key-value store with: - put(key: string, value: string), get(key) -> optional<string>, erase(key). - serialize() -> vect...

Coding & Algorithms
58
0
474 people solved
Jul 15, 2025
Google logo
Google
Medium
Software Engineer

Compute shortest delivery route with dangerous stops

Delivery Route Planning With Dangerous Stops You are given delivery stops (nodes) and a set of routes. Each route is a list of stops, and you can trav...

Coding & Algorithms
15
0
153 people solved
Dec 15, 2025
Ramp logo
Ramp
Hard
Software Engineer

Detect recurring transactions from a ledger

You are given a list of credit/debit card transactions. Each transaction has: - transaction_date (YYYY-MM-DD) - merchant (string) - amount (decimal, p...

Coding & Algorithms
43
0
498 people solved
Dec 15, 2025
Snowflake logo
Snowflake
Medium
Software Engineer

Validate an extended tic-tac-toe state

Problem You are given a 3×3 tic-tac-toe board state as an array of 3 strings, each of length 3. Each cell is one of: - 'X' (player X) - 'O' (player O)...

Coding & Algorithms
9
0
85 people solved
Dec 15, 2025
Jane Street logo
Jane Street
Medium
Software Engineer

Merge Two Insertion Diffs in Linear Time

A text-editing system represents changes to a document as insertion diffs. An insertion diff is a set of (position, value) pairs, where each pair mean...

Coding & Algorithms
1
0
19 people solved
Jul 11, 2025
Coinbase logo
Coinbase
Medium
Software Engineer

Solve restaurant path and order event tasks

You are given two independent coding tasks. Task 1: Shortest paths in a restaurant grid Context: A restaurant is represented as a 2D grid. The waiter ...

Coding & Algorithms
25
0
196 people solved
Dec 8, 2025
Meta logo
Meta
Medium
Software Engineer

Sum numbers formed by root-to-leaf paths

You are given the root of a binary tree where each node contains a single digit from 0 to 9. Each root-to-leaf path represents a number obtained by co...

Coding & Algorithms
4
0
39 people solved
Dec 8, 2025
Squarepoint logo
Squarepoint
Medium
Software Engineer

Parse payroll file and answer queries

You are given a payroll "file" as a StringIO (file-like) object in Python. The underlying text represents manually-entered payroll data. Assume the fo...

Coding & Algorithms
4
0
80 people solved
Dec 8, 2025
Robinhood logo
Robinhood
Easy
Software Engineer

Compute trigger counts in a DAG

You are given a directed acyclic graph (DAG) that represents trigger dependencies between tasks. - Each node represents a task. - There is exactly one...

Coding & Algorithms
8
0
107 people solved
Dec 8, 2025
Stripe logo
Stripe
Medium
Software Engineer

Implement account scheduler with locking and LRU

Design a class AccountScheduler that manages the time-based availability of a fixed set of account IDs. Initialization You are given: - accounts: a li...

Coding & Algorithms
5
1
42 people solved
Dec 8, 2025

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