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

Flip a specific bit in an integer

Given a non-negative integer num and a zero-based bit position p, return the integer resulting from flipping only the bit at position p (i.e., 0 becom...

Coding & Algorithms
9
0
91 people solved
Aug 1, 2025
Instacart logo
Instacart
Medium
Software Engineer

Evaluate arithmetic expression with precedence

Question Implement an evaluator for a string arithmetic expression. The input contains non-negative integers, the operators +, -, `, /, parentheses ( ...

Coding & Algorithms
8
0
78 people solved
Aug 1, 2025
Meta logo
Meta
Medium
Software Engineer

Solve PTO window and sparse unique counting

Solve PTO window and sparse unique counting Design algorithms for two problems: A) Longest vacation with limited PTO: Given an array A of characters w...

Coding & Algorithms
2
0
38 people solved
Aug 1, 2025
Uber logo
Uber
Medium
Software Engineer

Parse and evaluate nested expressions with validation

Design and implement a parser/evaluator for a parenthesized expression language where the input string may be invalid. The language uses spaces as tok...

Coding & Algorithms
3
0
60 people solved
Jul 31, 2025
Snapchat logo
Snapchat
Medium
Software Engineer

Compute shortest recursive string encoding

Given a string s, compress it by replacing any consecutive repetition of a substring with the form k{pattern} where k > 1 and pattern may itself be re...

Coding & Algorithms
5
0
55 people solved
Jul 31, 2025
Rippling logo
Rippling
Medium
Software Engineer

Compute max simultaneous drivers last 24 hours

Given delivery intervals (driverId, startTime, endTime) already recorded, implement maxSimultaneousDriverInPast24Hours() that returns the maximum numb...

Coding & Algorithms
30
0
210 people solved
Jul 31, 2025
Instacart logo
Instacart
Medium
Software Engineer

Evaluate arithmetic expression using DFS

Given a string representing an arithmetic expression with non-negative integers, +, -, *, /, parentheses, and optional spaces, evaluate its value. Use...

Coding & Algorithms
5
0
75 people solved
Jul 31, 2025
Instacart logo
Instacart
Medium
Software Engineer

Optimize file reads for password validation

Given a multi-gigabyte credentials file on disk with one record per line in the format user_id,salt,password_hash (hex), implement validate(user_id, p...

Coding & Algorithms
5
0
71 people solved
Jul 31, 2025
Fidelity logo
Fidelity
Medium
Software Engineer

Solve concurrency in Java

Solve concurrency in Java How do you handle concurrency in Java? Compare threads, the Executor framework, synchronized blocks, explicit locks, atomic ...

Coding & Algorithms
6
0
50 people solved
Jul 31, 2025
J.P. Morgan logo
J.P. Morgan
Medium
Software Engineer

Compute ring window max and deletion indices

Part A — Ring window maximum: You are given n computers arranged in a circle, represented by an array of bits (1 = on, 0 = off), and an integer k (1 <...

Coding & Algorithms
8
0
79 people solved
Jul 31, 2025
Bloomberg logo
Bloomberg
Medium
Software Engineer

Implement island counting with BFS and DFS

Question You are given an m x n grid of characters where '1' represents land and '0' represents water. Count the number of distinct islands (connected...

Coding & Algorithms
6
0
69 people solved
Jul 31, 2025
DoorDash logo
DoorDash
Medium
Software EngineerSenior+

Solve BFS grid delivery routing

You are given an m×n grid representing a city: 'S' are DashMart stores, 'H' are homes, '.' are roads, and '#' are obstacles. Movement is allowed in fo...

Coding & Algorithms
8
0
71 people solved
Jul 31, 2025
Salesforce logo
Salesforce
Medium
Software Engineer

Implement 64-bit modular exponentiation safely

Implement a function to compute (a^b) mod m where 0 ≤ a,b < 2^61−1 and 1 ≤ m < 2^61−1 using only 64-bit operations without overflow. Provide implement...

Coding & Algorithms
11
0
101 people solved
Jul 31, 2025
OpenAI logo
OpenAI
Medium
Software Engineer

Merge overlapping time intervals efficiently

Given a list of closed intervals [start, end] with 0 <= start <= end, merge all intervals that overlap or touch and return a minimal set of non-overla...

Coding & Algorithms
15
1
205 people solved
Jul 31, 2025
Vanta logo
Vanta
Medium
Software Engineer

Design test logging and failure-window queries

Build an in-memory service to log test run results and answer two queries. Assumptions: events arrive with strictly increasing timestamps across all t...

Coding & Algorithms
18
0
217 people solved
Jul 31, 2025
Amazon logo
Amazon
Medium
Software Engineer

Solve LeetCode string and list problems

Question LeetCode 767. Reorganize String LeetCode 23. Merge k Sorted Lists LeetCode 138. Copy List with Random Pointer https://leetcode.com/problems/r...

Coding & Algorithms
12
0
45 people solved
Jul 29, 2025
Airbnb logo
Airbnb
Medium
Software Engineer

Allocate refund across payments

Question Given a list of completed payment transactions (each with payment method, date, and amount) and a refund amount R, write an algorithm that is...

Coding & Algorithms
78
0
258 people solved
Jul 29, 2025
Salesforce logo
Salesforce
Medium
Software Engineer

Determine minimal substitutions and removals

Question Given a list of words, determine the minimum number of character substitutions required so that, in every word, no two adjacent characters ar...

Coding & Algorithms
19
0
41 people solved
Jul 29, 2025
Amazon logo
Amazon
Medium
Software Engineer

Minimize cost & recommend movies

Question Given arrays size[] and cost[] where size[i] is the size of the i-th product and cost[i] is the cost to increase size[i] by one unit, compute...

Coding & Algorithms
19
0
64 people solved
Jul 29, 2025
Amazon logo
Amazon
Medium
Software Engineer

Determine Rounds for Star Substring Threshold

Question Given a string S, an offset array O (replacement order), and an integer M, repeatedly replace S[O[i]] with ''. Determine the minimum number o...

Coding & Algorithms
11
0
32 people solved
Jul 29, 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