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

Find shortest substring with n unique letters

Problem You are given a string s consisting of lowercase English letters and an integer n (1 ≤ n ≤ 26). Find the length of the shortest contiguous sub...

Coding & Algorithms
5
0
46 people solved
Nov 3, 2025
Meta logo
Meta
Medium
Software Engineer

Find K-th Largest and Longest Vacation

Solve the following two coding problems. 1. Find the k-th largest element Given an integer array nums and an integer k, return the element that wou...

Coding & Algorithms
3
0
29 people solved
Nov 1, 2025
Google logo
Google
Easy
Software Engineer

Find k pairs with smallest sums

You are given two sorted integer arrays arr1 and arr2 (each sorted in non-decreasing order), and an integer k. Consider all possible pairs formed by t...

Coding & Algorithms
10
0
74 people solved
Nov 1, 2025
Google logo
Google
Easy
Software Engineer

Find right-side view of binary tree

You are given the root of a binary tree. From the right side of the tree, at each depth you can see exactly one node: the rightmost node at that depth...

Coding & Algorithms
6
0
63 people solved
Nov 1, 2025
Amazon logo
Amazon
Medium
Software EngineerIntern Locked

Implement nested object path lookup

This question evaluates parsing and traversal of nested maps and arrays, robust error handling for missing keys and out-of-bounds indices, and reasoni...

Coding & Algorithms
3
0
37 people solved
Oct 31, 2025
OpenAI logo
OpenAI
Medium
Software Engineer

Implement delimiter-free string codec

Design an encoder/decoder for a list of strings. - Implement two functions: - encode(strings: List[str]) -> str - decode(blob: str) -> List[str] -...

Coding & Algorithms
13
0
110 people solved
Oct 31, 2025
Microsoft logo
Microsoft
Medium
Software Engineer

Merge multiple sorted arrays using min-heap

Problem You are given k sorted arrays of integers: - arrays[0], arrays[1], ..., arrays[k-1] - Each arrays[i] is sorted in non-decreasing order. - The ...

Coding & Algorithms
4
0
51 people solved
Oct 28, 2025
Microsoft logo
Microsoft
Medium
Software Engineer

Reverse linked list in fixed-size groups

Problem You are given the head of a singly linked list and an integer k (k >= 1). Reverse the nodes of the list in-place in groups of size k: - The no...

Coding & Algorithms
4
0
58 people solved
Oct 28, 2025
Affirm logo
Affirm
Medium
Software Engineer Locked

Find shortest unique substring per word

This question evaluates string-processing and algorithmic problem-solving skills, focusing on identifying substrings unique to each word while handlin...

Coding & Algorithms
11
0
86 people solved
Oct 27, 2025
Hebbiaai logo
Hebbiaai
Medium
Software Engineer Locked

Detect Winners in Nested Tic-Tac-Toe

This question evaluates board-evaluation and pattern-detection skills, modular decomposition for reusable logic, and the ability to reason about time ...

Coding & Algorithms
0
0
15 people solved
Oct 24, 2025
Meta logo
Meta
Medium
Software Engineer

Find shortest subarray with range ≥ k

Problem You are given an integer array nums of length n and an integer k. Define the range of a subarray as: \[ \max(\text{subarray}) - \min(\text{sub...

Coding & Algorithms
3
0
34 people solved
Oct 23, 2025
NVIDIA logo
NVIDIA
Medium
Software Engineer

Find all unique triplets summing to zero

Problem Given an integer array nums, return all unique triplets [nums[i], nums[j], nums[k]] such that: - i, j, and k are distinct indices (i != j != k...

Coding & Algorithms
5
0
47 people solved
Oct 23, 2025
Nash AI logo
Nash AI
Medium
Software Engineer Locked

Implement Minesweeper click-to-reveal expansion

This question evaluates a candidate's ability to implement grid-based data structures, state management, and flood-fill style expansion logic for Mine...

Coding & Algorithms
2
0
42 people solved
Oct 21, 2025
Meta logo
Meta
Hard
Software Engineer

Solve common array/string/linked-list tasks

You may be asked one or more of the following independent coding tasks. For each task, implement an efficient algorithm and clearly state time/space c...

Coding & Algorithms
5
0
46 people solved
Oct 21, 2025
LinkedIn logo
LinkedIn
Medium
Software Engineer

Validate parentheses with one or three bracket types

Problem Given a string s consisting only of bracket characters, determine whether it is valid. A string is valid if: - Every opening bracket has a cor...

Coding & Algorithms
5
1
65 people solved
Oct 20, 2025
Uber logo
Uber
Hard
Software Engineer Locked

Minimize time using elevator then climb stairs

This question evaluates a candidate's ability to model and optimize a discrete decision under resource constraints, testing algorithmic optimization, ...

Coding & Algorithms
10
0
94 people solved
Oct 18, 2025
Amazon logo
Amazon
Easy
Software Engineer

Find all cells reachable by downhill flow

Problem You are given an m x n grid heights, where heights[r][c] is the elevation of cell (r, c). A drop of water is placed at a starting cell start =...

Coding & Algorithms
9
0
58 people solved
Oct 18, 2025
Dropbox logo
Dropbox
Medium
Software Engineer

Implement hierarchical folder access check

You are asked to simulate a simple hierarchical file system and implement an access-check function. The file system consists of folders arranged in a ...

Coding & Algorithms
8
0
85 people solved
Oct 18, 2025
Rippling logo
Rippling
Medium
Software Engineer

Aggregate expenses by person, trip, and category

Problem You are given a list of expense records. Each record has: - employee_id (string) - trip_id (string) - category (string, e.g., MEAL, HOTEL, TRA...

Coding & Algorithms
20
0
314 people solved
Oct 17, 2025
Google logo
Google
Hard
Software EngineerNew Grad Locked

Find numbers with exactly two sum-of-squares forms

This question evaluates understanding of integer representations as sums of two squares and the ability to reason about counting distinct unordered re...

Coding & Algorithms
9
0
64 people solved
Oct 14, 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