Software Engineer Coding & Algorithms Interview Questions

Practice 2,712 real Coding & Algorithms interview questions for Software Engineer roles. From companies including Meta, Amazon, Google, Uber, Microsoft.

2.7k Questions 325 Companies08.11.2026
Showing 20 results
Role
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
68 people solved
Jul 31, 2025
DoorDash logo
DoorDash
Medium
Software Engineer

Implement string matching with follow-up

Question Given a text T and a pattern P, implement a function firstIndex(T, P) that returns the starting index of the first occurrence of P in T, or -...

Coding & Algorithms
7
0
52 people solved
Jul 31, 2025
Instacart logo
Instacart
Medium
Software Engineer

Compute and optimize average wait time

You are given n pickup orders for a grocery delivery counter. Each order i is described by orders[i] = [arrival_i, service_i] in minutes, where arriva...

Coding & Algorithms
16
0
114 people solved
Jul 31, 2025
SoFi logo
SoFi
Medium
Software Engineer

Implement tree ops and LRU cache

Question Implement set(index) and clear(index) for the leaves of a full binary tree initially filled with 0s, where a parent node becomes 1 only when ...

Coding & Algorithms
19
0
48 people solved
Jul 29, 2025
Airbnb logo
Airbnb
Medium
Software Engineer

Review Python geodata code

Question You are given a Python codebase that performs geolocation data processing. Conduct a thorough code review: identify readability, correctness,...

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

Design Connect-N winner detector

Question Design a data structure for the Connect-N game: pieces are dropped into a column (occupying the lowest empty cell). Implement move(column, pl...

Coding & Algorithms
22
1
81 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
40 people solved
Jul 29, 2025
Meta logo
Meta
Medium
Software Engineer

Solve LeetCode array & stream problems

Question LeetCode 346. Moving Average from Data Stream LeetCode 249. Group Shifted Strings LeetCode 163. Missing Ranges Remove duplicates from a chara...

Coding & Algorithms
19
0
60 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
31 people solved
Jul 29, 2025
Meta logo
Meta
Medium
Software Engineer

Solve classic LeetCode problems

Question LeetCode 215. Kth Largest Element in an Array LeetCode 249. Group Shifted Strings Variant of LeetCode 56. Merge Intervals extended to 2-D rec...

Coding & Algorithms
7
0
34 people solved
Jul 29, 2025
Meta logo
Meta
Medium
Software Engineer

Solve diameter and shortest bridge problems

Question LeetCode 543. Diameter of Binary Tree LeetCode 934. Shortest Bridge https://leetcode.com/problems/diameter-of-binary-tree/description/ https:...

Coding & Algorithms
19
0
58 people solved
Jul 29, 2025
Meta logo
Meta
Medium
Software Engineer

Solve 4 LeetCode algorithm problems

Question LeetCode 636. Exclusive Time of Functions LeetCode 253. Meeting Rooms II LeetCode 314. Binary Tree Vertical Order Traversal LeetCode 215. Kth...

Coding & Algorithms
1
0
7 people solved
Jul 29, 2025
Rippling logo
Rippling
Medium
Software Engineer

Compute concurrent online drivers

Question Given each driver’s chronologically sorted delivery records, build an algorithm that, for a timestamp t, returns how many distinct drivers we...

Coding & Algorithms
7
0
19 people solved
Jul 29, 2025
Meta logo
Meta
Medium
Software Engineer

Check tree nodes equal subtree average

Question LeetCode 2265. Count Nodes Equal to Average of Subtree – Adapted: Verify that every node’s value equals the average of all values in its subt...

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

Find Top K Frequent Elements

Question LeetCode 347. Top K Frequent Elements – given an integer array nums, return the k most frequent elements. Initial requirement: return the top...

Coding & Algorithms
5
0
19 people solved
Jul 29, 2025
LinkedIn logo
LinkedIn
Medium
Software Engineer

Reverse a linked list

Question LeetCode 206. Reverse Linked List — Given the head of a singly linked list, reverse the list and return the reversed list. https://leetcode.c...

Coding & Algorithms
5
0
18 people solved
Jul 29, 2025
TikTok logo
TikTok
Medium
Software Engineer

Count deletions making array fair

Question LeetCode 1664. Ways to Make a Fair Array – Given an integer array nums, count the indices whose removal results in the sum of elements at eve...

Coding & Algorithms
5
0
19 people solved
Jul 29, 2025
Meta logo
Meta
Medium
Software Engineer

Compare two string linked lists

Question Given two singly linked lists where each node stores one character as a string, determine whether the sequences of characters represented by ...

Coding & Algorithms
7
0
20 people solved
Jul 29, 2025
Stripe logo
Stripe
Medium
Software Engineer

Convert bitmap into ASCII characters

Question Given an array/string of 0-1 bits representing a bitmap font, write code to render each character as a grid using '.' for 0 and '#' for 1, an...

Coding & Algorithms
13
0
51 people solved
Jul 29, 2025
Amazon logo
Amazon
Medium
Software Engineer

Find largest island area

Question Given a 2D grid of 0s and 1s, find the largest area of a connected group of 1s (island) using 4-directional adjacency; return that area. (Var...

Coding & Algorithms
14
0
21 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