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

Find shortest path with blocked nodes

Question Given an unweighted graph, a start node, an end node, and a block_set of nodes that cannot be traversed, return the length of the shortest pa...

Coding & Algorithms
6
0
9 people solved
Jul 29, 2025
Amazon logo
Amazon
Medium
Software Engineer

Find most frequent log user

Question You are given a list of log entries in string format, where each entry contains a username and an access timestamp separated by a delimiter (...

Coding & Algorithms
24
0
50 people solved
Jul 29, 2025
TikTok logo
TikTok
Medium
Software Engineer

Solve intervals and distinct islands

Question LeetCode 56. Merge Intervals LeetCode 694. Number of Distinct Islands https://leetcode.com/problems/merge-intervals/description/ https://leet...

Coding & Algorithms
6
0
22 people solved
Jul 29, 2025
Instacart logo
Instacart
Medium
Software Engineer

Implement matrix-indexing and expression resolver

Question Given a text file path whose contents include a single block starting with a line like "[2,4]" followed by rows of equal-length characters (e...

Coding & Algorithms
90
0
232 people solved
Jul 29, 2025
Instacart logo
Instacart
Medium
Software Engineer

Evaluate dependent variable expressions

Question Given a target variable name and a list of assignment strings of the form 'Ti = expression' where the expression is either a number, a single...

Coding & Algorithms
27
0
102 people solved
Jul 29, 2025
Instacart logo
Instacart
Medium
Software Engineer

Parse password from indexed matrix file

Question Given a filepath to a text file containing one index line [x, y] followed by a matrix of characters (origin at lower-left (0, 0)), return the...

Coding & Algorithms
29
0
70 people solved
Jul 29, 2025
Snapchat logo
Snapchat
Medium
Software Engineer

Handle cards, islands, Trie, median

Question LeetCode 914. X of a Kind in a Deck of Cards LeetCode 694. Number of Distinct Islands LeetCode 208. Implement Trie (Prefix Tree) LeetCode 295...

Coding & Algorithms
11
0
33 people solved
Jul 29, 2025
NVIDIA logo
NVIDIA
Medium
Software Engineer

Reconstruct tree from inorder and postorder

Given two arrays representing the inorder and postorder traversals of a binary tree with unique values, reconstruct the original binary tree and retur...

Coding & Algorithms
8
0
57 people solved
Jul 29, 2025
Snapchat logo
Snapchat
Medium
Software Engineer

Find index of first unique character

Find index of first unique character Given a string s, return the index of the first character that appears exactly once; if none exists, return -1. A...

Coding & Algorithms
6
0
43 people solved
Jul 28, 2025
Chime logo
Chime
Medium
Software Engineer

Find missing number from concatenated digits

Given an integer n (1 ≤ n ≤ 99) and a digit string s formed by concatenating the decimal representations of the integers 1..n except for one missing n...

Coding & Algorithms
57
0
381 people solved
Jul 27, 2025
Meta logo
Meta
Medium
Software Engineer

Evaluate expression without stack, constant space

Evaluate expression without stack, constant space Given a string s representing a valid arithmetic expression of non-negative integers, the operators ...

Coding & Algorithms
2
0
39 people solved
Jul 27, 2025
Tesla logo
Tesla
Medium
Software Engineer

Find latency pairs with minimal difference

Given an array of integers representing network latencies, return all increasing pairs [a, b] such that b − a equals the minimal absolute difference b...

Coding & Algorithms
4
0
44 people solved
Jul 26, 2025
Meta logo
Meta
Medium
Software Engineer

Solve increasing sequence and path problems

Solve increasing sequence and path problems Answer the following related tasks about increasing sequences and paths: a) Contiguous subarray: Given an ...

Coding & Algorithms
3
0
28 people solved
Jul 26, 2025
Nash AI logo
Nash AI
Medium
Software Engineer

Implement Minesweeper click and print

Implement Minesweeper click and print Implement the Minesweeper click(row, col) operation and a function to print the board. Rules: ( 1) If the clicke...

Coding & Algorithms
5
0
44 people solved
Jul 26, 2025
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
Oracle logo
Oracle
Medium
Software Engineer

Determine if robot path is bounded

Determine if robot path is bounded A robot starts at (0, 0) facing North on an infinite grid. It executes a string s consisting of 'G' (move forward 1...

Coding & Algorithms
7
0
70 people solved
Jul 26, 2025
Oracle logo
Oracle
Medium
Software Engineer

Find shortest subarray meeting target sum

Find shortest subarray meeting target sum Given an integer array nums (values may be negative) and an integer T, return the length of the shortest non...

Coding & Algorithms
3
0
58 people solved
Jul 26, 2025
Bloomberg logo
Bloomberg
Medium
Software Engineer

Implement classes in existing abstract hierarchy

You are given an existing Python codebase that defines multiple classes, including abstract base classes using abc.ABC and @abstractmethod decorators....

Coding & Algorithms
7
0
96 people solved
Jul 26, 2025
Anthropic logo
Anthropic
Medium
Software Engineer

Find and remove duplicate files

Given a directory tree that may not fit in memory, detect and optionally remove duplicate files. Define the algorithm, including how you handle very l...

Coding & Algorithms
22
0
167 people solved
Jul 26, 2025
Optiver logo
Optiver
Medium
Software Engineer

Validate a Binary Tree Built from Directed Edges

Validate a Binary Tree Built from Directed Edges You are given a list of directed edges. Each edge is a pair (parent, child) of positive-integer node ...

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