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
Rokt logo
Rokt
Easy
Software Engineer

Implement basic calculator with four operations

Implement a basic arithmetic expression evaluator. Problem You are given a string s representing a mathematical expression containing non-negative int...

Coding & Algorithms
4
0
30 people solved
Dec 6, 2025
Stripe logo
Stripe
Easy
Software Engineer

Implement stateful connection router simulator

You are implementing a simplified connection router / load balancer for a Jupyter-like multi-tenant server system. There are N target servers, indexed...

Coding & Algorithms
2
0
30 people solved
Dec 6, 2025
Google logo
Google
Easy
Software Engineer

Maximize coins with tokens moving by +3

You are given a 1D board represented by a string s of length n. Each character is one of: - '.' — an empty cell - 'C' — a cell containing exactly one ...

Coding & Algorithms
21
2
203 people solved
Dec 5, 2025
Patreon logo
Patreon
Medium
Software Engineer

Evaluate word-guess feedback with repeats

You are implementing feedback for a Wordle-like guessing game. Part 1 — Produce feedback for one guess You are given two strings of equal length guess...

Coding & Algorithms
13
0
100 people solved
Dec 2, 2025
Amazon logo
Amazon
Medium
Software Engineer

Compute peak parking lot occupancy intervals

You are given logs from a parking lot system. Each log entry has the form: [carId, time, eventType] - carId is an integer identifying a car. - time is...

Coding & Algorithms
6
0
99 people solved
Dec 2, 2025
Grammarly logo
Grammarly
Easy
Software Engineer

Implement string reduction and time map

In a coding interview, you are asked to solve two algorithm problems. 1. String reduction with adjacent duplicates - Basic version: Given a string ...

Coding & Algorithms
10
0
84 people solved
Nov 29, 2025
Stripe logo
Stripe
Medium
Software Engineer Locked

Implement JSON parsing and HTTP integration tasks

This question evaluates proficiency in JSON parsing, file I/O, HTTP client integration, request/response handling, payload construction, mapping data ...

Coding & Algorithms
10
0
127 people solved
Nov 26, 2025
Snapchat logo
Snapchat
Medium
Software Engineer

Implement sin(x) with precision constraints

Coding Question: Implement sin(x) Implement a function that returns an approximation of the trigonometric sine function. Function signature - Input: a...

Coding & Algorithms
4
0
67 people solved
Nov 26, 2025
Microsoft logo
Microsoft
Medium
Software Engineer

Find longest substring without repeating characters

Problem Given a string s, return the length of the longest contiguous substring that contains no repeated characters. Input - s: a string (may contain...

Coding & Algorithms
3
0
65 people solved
Nov 25, 2025
Turing logo
Turing
Medium
Software Engineer

Count permutations with exactly n inversions

You are given two integers m and n. Consider all permutations of the array [1, 2, ..., m] (each number from 1 to m appears exactly once). A permutatio...

Coding & Algorithms
7
0
85 people solved
Nov 24, 2025
Coinbase logo
Coinbase
Medium
Software Engineer

Implement a versioned recipe management system

You are asked to implement an in-memory Recipe Management System (similar in difficulty to a simple banking/in-memory DB exercise). The system support...

Coding & Algorithms
19
0
232 people solved
Nov 23, 2025
Google logo
Google
Hard
Software Engineer

Count same-color squares in a character grid

You are given a 2D grid (matrix) of characters. Each character represents a color: cells with the same character are considered the same color. Formal...

Coding & Algorithms
13
1
157 people solved
Nov 22, 2025
LinkedIn logo
LinkedIn
Medium
Software Engineer

Find the k-th largest element in an array

Given an integer array nums and an integer k, return the k-th largest element in the array. Notes: - The k-th largest element is the element that woul...

Coding & Algorithms
11
0
87 people solved
Nov 21, 2025
LinkedIn logo
LinkedIn
Medium
Software Engineer

Count connected land components in a grid

You are given a 2D grid of characters where: - '1' represents land - '0' represents water A group of land cells forms an island if they are connected ...

Coding & Algorithms
9
0
85 people solved
Nov 21, 2025
Sigmacomputing logo
Sigmacomputing
Easy
Software Engineer

Implement a basic pivot table with totals

You are given a small in-memory table of data and are asked to implement a simplified pivot table operation and a printer for it. Assume the input dat...

Coding & Algorithms
6
0
97 people solved
Nov 20, 2025
Microsoft logo
Microsoft
Medium
Software Engineer

Find lowest common ancestor in tree

You are given the root of a binary search tree (BST) and two distinct nodes p and q that are guaranteed to exist in the tree. Task (BST case): - Find ...

Coding & Algorithms
6
0
56 people solved
Nov 19, 2025
Meta logo
Meta
Medium
Software EngineerIntern

Solve tree diameter and grid path problems

You are interviewing for a software engineer / ML intern role and are given the following algorithmic problems. --- Question 1: Longest Path in a Tree...

Coding & Algorithms
2
0
38 people solved
Nov 18, 2025
Microsoft logo
Microsoft
Medium
Software Engineer

Count integer pairs satisfying 1/x + 1/y = 1/N

You are given a positive integer N (\(1 \le N \le 10^6\)). Consider the Diophantine equation: \[ \frac{1}{x} + \frac{1}{y} = \frac{1}{N}, \] where x a...

Coding & Algorithms
6
0
56 people solved
Nov 17, 2025
Uber logo
Uber
Hard
Software Engineer

Maximize stock profit with one or two trades

You are given an array prices where prices[i] is the price of a given stock on day i (0-indexed). You want to maximize your profit by choosing when to...

Coding & Algorithms
5
0
82 people solved
Nov 17, 2025
Databricks logo
Databricks
Medium
Software Engineer

Compute last-5-minute QPS in memory

Problem You are building a lightweight in-memory component that tracks the query load (QPS) of a service. Design a data structure with two operations:...

Coding & Algorithms
5
0
97 people solved
Nov 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