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

Implement string dedup and mirror tree traversal

- String cleanup with group deletions (LeetCode-inspired): Given a string s consisting of lowercase letters, repeatedly delete any maximal contiguous ...

Coding & Algorithms
1
0
27 people solved
Sep 6, 2025
Meta logo
Meta
Medium
Software Engineer

Compute longest rising path in a grid

Given an m×n grid of integers, find the length of the longest path where each step moves up, down, left, or right to a strictly larger value. Return t...

Coding & Algorithms
3
0
43 people solved
Sep 6, 2025
Amazon logo
Amazon
Medium
Software Engineer

Sort characters by frequency

Given an ASCII string s, reorder its characters in decreasing order of frequency. If multiple characters share the same frequency, break ties by ascen...

Coding & Algorithms
2
1
28 people solved
Sep 6, 2025
Meta logo
Meta
Medium
Software Engineer

Optimize flight costs and find grid path

1) Given two integer arrays D and R of equal length n, where D[i] is the cost to depart on day i and R[j] is the cost to return on day j, choose indic...

Coding & Algorithms
4
0
31 people solved
Sep 6, 2025
Databricks logo
Databricks
Medium
Software Engineer

Design IP/CIDR rule matcher

Design and implement a rule matcher that returns 'accept' or 'deny' for a given IPv4 address based on a set of rules. Each rule can be either an inclu...

Coding & Algorithms
26
0
253 people solved
Sep 6, 2025
Citadel logo
Citadel
Medium
Software Engineer

Solve four algorithmic problems

Answer the following independent algorithmic questions: 1) Count extendable prefixes for '10' subsequences: Given a binary string s and an integer k, ...

Coding & Algorithms
21
0
205 people solved
Sep 6, 2025
HubSpot logo
HubSpot
Medium
Software Engineer

Implement a same-host web crawler

Implement a web crawler that, given a starting URL and an interface get_links(url) -> Iterable[str], discovers all pages under the same hostname. Requ...

Coding & Algorithms
3
0
60 people solved
Sep 6, 2025
Cerebras logo
Cerebras
Medium
Software Engineer

Implement Binary Search in C++

From scratch in C++, implement binary search over a sorted array to locate a target value. Provide a correct iterative implementation, handle not-foun...

Coding & Algorithms
7
0
73 people solved
Sep 6, 2025
Uber logo
Uber
Medium
Software Engineer

Solve vault rate and subset-sum

1) Robber vaults rate: You are given an array vaults of positive integers where vaults[i] is the amount in the i-th vault, and an integer h (hours). I...

Coding & Algorithms
7
0
65 people solved
Sep 6, 2025
Pinterest logo
Pinterest
Medium
Software Engineer

Implement string-based big integer multiplication

Question Implement multiplyStrings(a, b) to multiply two non-negative integers given as decimal strings and return their product as a decimal string. ...

Coding & Algorithms
14
0
105 people solved
Sep 6, 2025
Stripe logo
Stripe
Medium
Software Engineer

Compute currency conversions with graph algorithms

Question You are given a set of pairwise currency exchange relations such as A:B = 1:1.5 and B:C = 1:1.5, meaning 1 A = 1.5 B and 1 B = 1.5 C. Design ...

Coding & Algorithms
3
0
31 people solved
Sep 6, 2025
Capital One logo
Capital One
Medium
Software Engineer

Implement 2D transforms and find max-lit point

Part A — 2D array transforms: Given an m×n integer matrix, implement the following in-place operations with clear function boundaries and complexity: ...

Coding & Algorithms
5
0
86 people solved
Sep 6, 2025
Instacart logo
Instacart
Medium
Software Engineer

Solve expression evaluator and string decoder

1) Implement an arithmetic expression evaluator that reads expressions from a text file (one expression per line) and outputs the evaluated result for...

Coding & Algorithms
28
0
216 people solved
Sep 6, 2025
Meta logo
Meta
Medium
Software Engineer

Compute top-N outgoing spenders

Add a feature to report the top N accounts by total outgoing payments across both immediate pays and scheduled payments. Implement: List<String> topNS...

Coding & Algorithms
3
0
24 people solved
Sep 6, 2025
MathWorks logo
MathWorks
Medium
Software Engineer

Find shortest path using BFS

Given an m×n grid grid where grid[r][c] = 0 represents an empty cell and 1 represents a wall, a start cell (sr, sc), and a target cell (tr, tc), you m...

Coding & Algorithms
2
0
30 people solved
Sep 6, 2025
Google logo
Google
Medium
Software Engineer

Find horizontal cut balancing square areas

Given a 2D table with top-left origin (0, 0), you are provided a finite set of n non-overlapping, axis-aligned square cakes. Each square i has real-va...

Coding & Algorithms
3
0
44 people solved
Sep 6, 2025
Snapchat logo
Snapchat
Medium
Software Engineer

Find top co-purchased products

You receive purchase logs where each order is represented as an integer array of product IDs bought together in a single transaction. Implement a func...

Coding & Algorithms
3
0
51 people solved
Sep 6, 2025
Akuna Capital logo
Akuna Capital
Medium
Software Engineer

Implement a ring buffer

Implement a fixed-capacity circular buffer (ring buffer) supporting push, pop, peek, isEmpty, isFull, and size in O( 1) time using an array. Define an...

Coding & Algorithms
11
0
96 people solved
Sep 6, 2025
Snowflake logo
Snowflake
Medium
Software Engineer

Compute shortest path between tree nodes

Question You are given the root of a binary tree (not necessarily a BST) whose nodes have integer values, and two target values u and v. Implement a f...

Coding & Algorithms
4
0
79 people solved
Sep 6, 2025
Meta logo
Meta
Medium
Software Engineer

Reverse sublist between equal-value nodes

Given the head of a singly linked list and a target value v that appears at least twice, reverse the sublist starting at the first node with value v a...

Coding & Algorithms
4
0
39 people solved
Sep 6, 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