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

Implement Regular Expression Matching

Implement Regular Expression Matching Determine whether an entire input string matches a pattern containing lowercase letters and two special symbols:...

Coding & Algorithms
1
0
16 people solved
Jul 4, 2026
Amazon logo
Amazon
Easy
Software Engineer

Unify Stock-Trading Profit Variants

Unify Stock-Trading Profit Variants Given daily stock prices, return the maximum profit when you may complete at most max_transactions buy-then-sell t...

Coding & Algorithms
1
0
13 people solved
Jul 4, 2026
SoFi logo
SoFi
Easy
Software EngineerSenior+

Return All Nodes Reachable from a Starting Vertex

Given directed edges and a starting vertex, return all vertices reachable from the start, including the start. The graph may contain cycles. Implement...

Coding & Algorithms
0
0
13 people solved
Jul 3, 2026
Hudson River Trading logo
Hudson River Trading
Medium
Software Engineer

Count Length-3 Chat Substrings with a Vowel

You are developing an automatic moderation system for a chat application that detects simple linguistic patterns. Given a string chatMessage, count ho...

Coding & Algorithms
0
1
4 people solved
Jul 2, 2026
Salesforce logo
Salesforce
Medium
Software Engineer

Find a Valid Task Execution Order with Dependencies

You are building the task scheduler for a CI/build system. There are n build tasks labeled from 0 to n - 1. Some tasks cannot start until certain othe...

Coding & Algorithms
0
0
7 people solved
Jun 30, 2026
Tesla logo
Tesla
Easy
Software Engineer

Count the Ways to Decode a Numeric Cipher

A substitution cipher maps each uppercase English letter to a number: 'A' → 1, 'B' → 2, …, 'Z' → 26. To encode a word, every letter is replaced by its...

Coding & Algorithms
0
0
6 people solved
Jun 29, 2026
Uber logo
Uber
Medium
Software EngineerSenior+

Quadtree for 2D Geospatial Points

Quadtree for 2D Geospatial Points Design and implement a point quadtree that stores geographic locations on a 2D plane and supports efficient axis-ali...

Coding & Algorithms
0
0
6 people solved
Jun 28, 2026
Uber logo
Uber
Medium
Software EngineerSenior+

Group Anagrams

Group Anagrams Given an array of strings words, group together all strings that are anagrams of one another and return the groups. Two strings are ana...

Coding & Algorithms
1
0
10 people solved
Jun 28, 2026
Lyft logo
Lyft
Medium
Software Engineer

Smallest Covering Window in a String

Smallest Covering Window in a String You are given two strings, source and target. Return the shortest contiguous substring of source that contains ev...

Coding & Algorithms
0
0
8 people solved
Jun 28, 2026
Uber logo
Uber
Easy
Software EngineerNew Grad Locked

Sort a String of Clothing Sizes

Sort a string containing only S, M, and L into size order in linear time. Extend the discussion to custom token orderings, unknown-size behavior, empt...

Coding & Algorithms
2
0
15 people solved
Jun 24, 2026
Antra logo
Antra
Medium
Software Engineer Locked

Character Frequency Count in a String

This question tests a candidate's practical ability to traverse strings and use hash-based data structures for frequency counting while preserving ins...

Coding & Algorithms
0
0
4 people solved
Jun 20, 2026
Grammarly logo
Grammarly
Medium
Software Engineer Locked

Deep-Copy a Linear Linked List

Deep-copy a finite singly linked list represented by nested Python lists. Preserve values and structure while allocating every returned node independe...

Coding & Algorithms
1
0
14 people solved
Jun 19, 2026
Grammarly logo
Grammarly
Medium
Software Engineer Locked

Reverse a Singly Linked List

Reverse a finite singly linked list represented by nested two-item Python lists. Reuse the existing node objects without allocating replacements, and ...

Coding & Algorithms
3
0
16 people solved
Jun 19, 2026
Bytedance logo
Bytedance
Hard
Software Engineer Locked

Find the Best Word for a Query Suffix

Practice a Bytedance coding interview problem focused on find the best word for a query suffix. The prompt emphasizes edge cases, clean implementation...

Coding & Algorithms
0
0
6 people solved
Jun 19, 2026
Amazon logo
Amazon
Medium
Software Engineer Locked

Find Conflicting Events

This question evaluates algorithmic problem-solving in coding and algorithms, focusing on grouping, sorting, and sliding-window techniques applied to ...

Coding & Algorithms
1
0
9 people solved
Jun 19, 2026
Google logo
Google
Medium
Software Engineer Locked

Count Clusters of 2D Points Within a Radius

This question tests graph traversal skills, specifically identifying connected components among a set of 2D points using distance-based adjacency. It ...

Coding & Algorithms
3
1
14 people solved
Jun 18, 2026
Walmart logo
Walmart
Medium
Software Engineer Locked

Minimize Cost for Feature-Capable Models

This question evaluates algorithmic problem-solving and combinatorial optimization skills related to selecting cost-minimal subsets that satisfy dual ...

Coding & Algorithms
0
0
4 people solved
Jun 18, 2026
Snowflake logo
Snowflake
Medium
Software Engineer Locked

Determine Whether an Undirected Graph Is 3-Colorable

Determine whether a possibly disconnected undirected graph with up to 20 vertices can be colored using at most three colors so that adjacent vertices ...

Coding & Algorithms
3
0
22 people solved
Jun 12, 2026
Harvey logo
Harvey
Medium
Software Engineer Locked

Spreadsheet Formula Engine with Cycle Detection

This question evaluates a candidate's ability to design a stateful data structure that models dependency relationships and lazily propagates updates, ...

Coding & Algorithms
0
0
6 people solved
Jun 12, 2026
Databricks logo
Databricks
Medium
Software EngineerSenior+ Locked

Optimal Commute: Nearest Transit Distance in a City Grid

This question evaluates a candidate's ability to apply multi-source breadth-first search to a grid-based shortest-path problem. It tests graph travers...

Coding & Algorithms
1
0
21 people solved
Jun 9, 2026

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