Software Engineer Interview Questions

Software Engineer Interview Questions

Practice 5,054 real software engineer interview questions for 2026. Covers top employers like Google, Amazon, OpenAI, and Uber — real questions from actual onsites with detailed solutions — and is built for focused interview preparation. This collection emphasizes coding and algorithms first, then system design, performance, and role-specific domains so you can train the exact skills interviewers test. What’s distinctive: coding rounds still dominate at every company, Google often emphasizes algorithms and distributed-systems thinking, Amazon commonly probes scalable-services design and operational tradeoffs, OpenAI leans toward ML systems, model deployment and inference-scaling problems, and Uber typically asks real-time routing, geospatial and consistency challenges. Expect live coding, pair-programming, and whiteboard/system-design sketches. To prepare efficiently, drill medium-to-hard algorithm problems with time limits, practice end-to-end system design sketches focused on capacity and reliability, and rehearse concise behavioral stories that show ownership and impact.

5.1k Questions 403 Companies08.04.2026
Showing 20 results
Role
PayPal logo
PayPal
Medium
Software Engineer

Describe std::string copy semantics

Describe std::string copy semantics In C++, what happens with std::string when you write: std::string a = "123"; std::string b = a; Describe which ope...

Coding & Algorithms
4
0
41 people solved
Aug 7, 2025
Meta logo
Meta
Medium
Software Engineer

Compute binary tree diameter

Compute binary tree diameter Given the root of a binary tree, compute the tree's diameter defined as the maximum number of edges on any path between t...

Coding & Algorithms
4
0
43 people solved
Aug 7, 2025
J.P. Morgan logo
J.P. Morgan
Medium
Software Engineer

Compute max-ons and deletion indices

Question Given a circular array of n computers represented by 0 (off) and 1 (on), determine the maximum possible number of on computers within any con...

Coding & Algorithms
17
0
46 people solved
Aug 4, 2025
Microsoft logo
Microsoft
Medium
Software Engineer

Solve binary-search knapsack & graph shortest path

Question Given a sorted list of items, design an efficient solution (using binary search) to achieve the target objective instead of a dynamic-program...

Coding & Algorithms
5
0
59 people solved
Aug 4, 2025
Bloomberg logo
Bloomberg
Medium
Software Engineer

Solve Number of Islands

Question LeetCode 200. Number of Islands – Given a 2D grid of '1's (land) and '0's (water), count the number of islands. Follow-up: implement the solu...

Coding & Algorithms
6
0
77 people solved
Aug 4, 2025
Applied Intuition logo
Applied Intuition
Medium
Software Engineer

Find duplicate files by size

Question LeetCode 609. Find Duplicate File in System — find duplicate files using file size instead of content comparison https://leetcode.com/problem...

Coding & Algorithms
15
0
116 people solved
Aug 4, 2025
Applied Intuition logo
Applied Intuition
Medium
Software Engineer

Delete duplicate files via DFS

Question LeetCode 609. Find Duplicate File in System – Implement an algorithm (using DFS/backtracking) to delete files with duplicate content in a fil...

Coding & Algorithms
12
0
34 people solved
Aug 4, 2025
Airbnb logo
Airbnb
Medium
Software Engineer

Implement Connect Four game

Question Design and implement the Connect Four game board, player moves, and winner-detection logic. Discuss time/space complexity and possible follow...

Coding & Algorithms
22
0
199 people solved
Aug 4, 2025
Uber logo
Uber
Medium
Software Engineer

Handle invalid Lisp expression parsing

Question LeetCode 736. Parse Lisp Expression – Given a string representing a Lisp-like expression containing let/add/mult operations and variable bind...

Coding & Algorithms
2
0
50 people solved
Aug 4, 2025
MathWorks logo
MathWorks
Medium
Software Engineer

Count interval intersections

Question For a list of n segments, where each segment i has start[i] and end[i], compute for every segment the count of other segments that intersect ...

Coding & Algorithms
2
0
28 people solved
Aug 4, 2025
Amazon logo
Amazon
Medium
Software Engineer

Compute delay times in priority array

Question Given an array of integers representing task priorities processed from right to left, return an array where each element is the distance (ind...

Coding & Algorithms
3
0
32 people solved
Aug 4, 2025
Snapchat logo
Snapchat
Medium
Software Engineer

Solve Open the Lock BFS

Question LeetCode 752. Open the Lock – Given an initial lock state "0000", a target combination, and a list of deadend combinations that cannot be use...

Coding & Algorithms
4
0
65 people solved
Aug 4, 2025
Vanta logo
Vanta
Medium
Software Engineer

Implement test failure analytics APIs

Question Design a data structure that supports: log(testId, timestamp, status) — record the status ('pass'/'fail') of a test run; timestamps are stric...

Coding & Algorithms
31
1
313 people solved
Aug 4, 2025
Uber logo
Uber
Medium
Software Engineer

Count subarrays with ≥k identical pairs

Question LeetCode 2537. Count the Number of Good Subarrays – Given an integer array nums and an integer k, return the number of contiguous subarrays i...

Coding & Algorithms
4
0
52 people solved
Aug 4, 2025
Netflix logo
Netflix
Medium
Software Engineer

Solve non-repeating show substring

Question LeetCode 3. Longest Substring Without Repeating Characters – variant where the elements are show names instead of numbers. https://leetcode.c...

Coding & Algorithms
11
0
193 people solved
Aug 4, 2025
Airbnb logo
Airbnb
Medium
Software Engineer

Verify and modify inorder subsequence

Question Given a binary tree and a sequence of numbers, design an algorithm to check in O(n) time and O( 1) extra space whether the sequence is a subs...

Coding & Algorithms
16
1
131 people solved
Aug 4, 2025
Amazon logo
Amazon
Medium
Software Engineer

Determine reachability and optimize task scheduling

Question LeetCode 780. Reaching Points: Given four integers a, b, c, d (1 <= a, b, c, d <= 1000). Starting from (a, b) you may repeatedly apply either...

Coding & Algorithms
2
0
37 people solved
Aug 4, 2025
Meta logo
Meta
Medium
Software Engineer

Maximize vacation streak with PTO

Question Given an array of characters containing 'w' (workday) and 'h' (holiday) and an integer n representing the number of PTO days you can convert ...

Coding & Algorithms
12
0
10 people solved
Aug 4, 2025
Anthropic logo
Anthropic
Medium
Software Engineer

Solve programming task with follow-ups

Question Pure programming problem solving: implement the core algorithmic solution, then extend it to ( 1) support a constraint of consecutive N eleme...

Coding & Algorithms
14
0
143 people solved
Aug 4, 2025
Salesforce logo
Salesforce
Medium
Software Engineer

Convert integer to NAF form

Question Convert a given integer into its Non-Adjacent Form (NAF) representation such that no two non-zero digits are adjacent, and prove that the res...

Coding & Algorithms
2
0
9 people solved
Aug 4, 2025

Frequently Asked Questions

How difficult are Software Engineer interview questions at top tech companies?
Top tech-company Software Engineer interview questions are challenging but predictable. Expect a range: entry-level screens focus on easy to medium algorithmic problems and core data structures, mid-level rounds push medium to hard problems plus design, and senior interviews center on large-system architecture, tradeoffs, and expected impact. Coding rounds usually require clear, correct, and reasonably optimized solutions under time pressure. Behavioral and ownership questions probe product judgment and collaboration. Companies like Meta, Google, Amazon, and OpenAI maintain high standards, so strong algorithmic fluency, system-thinking, and communication are required to clear screening and onsite loops.
What is a typical Software Engineer interview process and where are these roles most commonly hiring heavily right now?
A typical loop starts with a recruiter screen within a week, then one or two timed online or phone coding screens in the next 1–2 weeks. Successful candidates move to technical onsite rounds or virtual loops that include two to four interviews covering coding, system design, and behavioral questions across 2–4 weeks. Senior roles add deep design and leadership interviews and some companies use take-home projects. Right now, Meta, Amazon, Google, and OpenAI are hiring Software Engineers heavily; expect Meta questions to emphasize graph and feed-scaling themes, Amazon on distributed throughput and reliability, Google on algorithmic performance, and OpenAI on inference and API infrastructure.
How should I structure my interview preparation timeline for Software Engineer roles?
A 6–8 week plan balances depth and repetition. Weeks 1–2: reinforce language fundamentals, data structures, and complexity reasoning. Weeks 3–4: practice timed coding problems daily from medium-to-hard sets and do mock interviews. Week 5: focus system design basics, capacity planning, and tradeoffs using end-to-end case studies. Week 6: polish behavioral stories using STAR format and run full-length mock loops. Final weeks: company-specific tuning, a few targeted practice sessions on themes like graphs or distributed systems, and light review. Integrate feedback cycles and 2–3 real mock interviews per week for confidence.
What key subtopics should I master for Software Engineer interview questions?
Core algorithm topics include arrays, strings, trees, graphs, dynamic programming, hashing, and complexity analysis. For mid-to-senior roles, add concurrency, caching strategies, database schemas, CAP tradeoffs, and performance tuning. System design covers APIs, data modeling, partitioning, consistency, load balancing, and monitoring. Testing, clean code, and debugging are evaluated during coding rounds. Company-specific recurring themes to prioritize are graph and feed-scaling problems for Meta, distributed systems and cost-throughput tradeoffs for Amazon, performance at scale for Google, and inference/API platform design for OpenAI. Practice end-to-end problems that combine algorithms and systems thinking.
What are standout tips and common pitfalls to avoid in Software Engineer interviews?
Standout tips: clarify requirements and constraints before coding, narrate your thought process, write clean pseudocode then production-ready code, test edge cases aloud, and discuss tradeoffs in design questions. Use structured STAR stories for behavioral rounds and quantify impact. Common pitfalls: jumping into code without confirming expectations, ignoring time or memory constraints, failing to consider scalability and failure modes in design questions, and underselling ownership or impact. Avoid rote memorization of solutions; interviewers value reasoning and adaptability. Finally, practice mock interviews under timed conditions and incorporate iterative feedback to close weak spots.

Explore more Software Engineer interview questions

Jump straight to Software Engineer questions at a specific company or in a specific category.

By company
By category