practice a little every day, paws crossed ♡
Software Engineer Interview Questions
Practice 9403 coding, system design and machine learning questions from 546 companies, sorted by role, topic and interview round. Every question has step-by-step hints, a code runner that supports 8 languages and an AI mentor; members also get the full solution walkthrough.
- 9403
- Questions
- 546
- Companies
- 11
- Topics
- 8
- Languages
Showing 1261–1290 of 2336 results
- MavenclinicMediumSoftware EngineerSolve two interview coding problems
This problem tests your ability to handle currency conversion using graph pathfinding (multiplicative weights) and implement a custom pagination algorithm that balances item distribution while respecting original ordering.
Coding & AlgorithmsOnsiteGraphsShortest PathGreedy - MercorMediumSoftware EngineerCurrency Exchange Rate Between Two Currencies via Chained Conversions
Given a list of pairwise currency exchange rates such as USD to GBP at 0.77, compute the rate from a source currency to a target currency, converting through intermediate currencies and using rates in reverse where needed. It tests reasoning about chained conversions, unknown or unreachable currencies, and a clear time and space complexity analysis.
Coding & AlgorithmsOnsite - MetaHardSoftware EngineerAnalyze Minimum Completion Time for Target Courses in a Prerequisite DAG
Analyze the minimum time needed to finish target courses and only their transitive prerequisites in a DAG. Distinguish total study effort from elapsed time with parallel courses, count shared prerequisites once, exclude unrelated nodes, and detect reachable cycles.
Software Engineering FundamentalsOnsite - MetaHardSoftware EngineerAnswer Repeated Range Aggregate Queries on a Static BST
Preprocess a sorted array derived from a static BST to answer many inclusive range queries. Use binary-search boundaries and wide prefix sums to return both the sum and count for each range without rescanning the tree.
Coding & AlgorithmsOnsite - MetaMediumSoftware EngineerAnswer four string/array/battery coding questions
This set of four problems evaluates algorithmic competencies including ASCII string processing and character classification, array transformation and operation-count reasoning, cost-minimization for enforcing monotonicity under only-increase constraints, and time-based simulation of resource scheduling with recharge cycles.
Coding & AlgorithmsOnsite - MetaHardSoftware EngineerAnswer key behavioral prompts effectively
This set of behavioral prompts evaluates ownership, communication, conflict resolution, adaptability, and the ability to receive and act on feedback, targeting leadership and interpersonal competencies relevant to software engineering.
Behavioral & LeadershipOnsite - MetaMediumSoftware EngineerBehavioral: Acting on Critical Manager Feedback and a Simplification Beyond Your Depth
A senior behavioral question on growth: explain how you handled critical feedback from your manager, and a time you tried to simplify something before you understood it well enough. It tests self-awareness, learning speed and how you turn a misstep into lasting changes in your habits.
Behavioral & LeadershipOnsite - MetaMediumSoftware EngineerBehavioral: Managing Shifting Priorities and Changing Approach Mid-Project
A senior behavioral question on prioritization and adaptability: how you manage several competing priorities, whether you prefer shifting or steady work, and a project where you had to change approach midway. It probes trade-off reasoning, stakeholder communication and recognizing when to change course.
Behavioral & LeadershipOnsite - MetaMediumSoftware EngineerBuild a FastAPI summarization service
This question evaluates web API development and backend engineering competencies, including FastAPI usage, Python type hints, Pydantic-based request/response validation, error handling, in-memory state management, and modular router/service/model layering, and it belongs to the Coding & Algorithms category with a focus on backend web service and API design. It is commonly asked to assess practical ability to deliver production-ready REST endpoints with proper validation and error handling under constrained resources, and the level of abstraction required is primarily practical implementation with attention to architectural design.
Coding & AlgorithmsOnsite - MetaHardSoftware EngineerBuild a Mistral-powered RAG agent
This question evaluates a candidate's ability to design and implement a retrieval-augmented generation (RAG) system using a large language model API, including document ingestion, chunking, vector indexing and retrieval, streaming completions, service interfaces (CLI and HTTP), and resilience features like retries, persistence, and structured error handling. Commonly asked in the ML System Design domain to assess practical engineering and architectural reasoning, it tests API integration, production-readiness (configuration, error handling, persistence, and testing) and emphasizes practical application with conceptual understanding of retrieval trade-offs.
ML System DesignOnsite - MetaMediumSoftware EngineerCanonicalize an Absolute Unix-Style Path With Dot and Double-Dot Segments
Convert an absolute Unix-style file path into its canonical form by collapsing repeated slashes, dropping single-dot segments, resolving double-dot segments against the parent directory, and treating other dot sequences as ordinary names. It tests careful string parsing and edge cases such as the root directory.
Coding & AlgorithmsOnsite - MetaHardSoftware EngineerCheck Whether Deleting at Most K Characters Can Form a Palindrome
Determine whether a string can be transformed into a palindrome by removing at most k characters. Tests dynamic programming, palindrome properties, and recursive search with branch bounding.
Coding & AlgorithmsOnsiteDynamic ProgrammingTwo PointersString - MetaMediumSoftware EngineerChoose the Cheapest Round Trip
This problem tests the ability to optimize a two-step decision process by maintaining track of the best previous state, requiring a linear scan approach.
Coding & AlgorithmsOnsiteArraysGreedyOptimization - MetaHardSoftware EngineerChoose the Longest Set of Words with No Repeated Characters
Tests bitmask representation, backtracking with pruning, and combinatorial optimization under character-uniqueness constraints.
Coding & AlgorithmsOnsitebitmaskbacktrackingdepth-first-search - MetaMediumSoftware EngineerCombine Many Sorted Integer Arrays into One Non-Decreasing Array
A coding question asking you to merge many integer arrays, each already sorted in non-decreasing order, into a single sorted array that keeps every duplicate value. It tests multi-way merging, efficiency as the number of input arrays grows, and edge cases such as empty inputs and arrays of different lengths.
Coding & AlgorithmsOnsite - MetaMediumSoftware EngineerCompute BST range sum
This question evaluates understanding of binary search tree properties, traversal techniques, and the ability to implement both recursive and iterative algorithms while reasoning about time and space complexity.
Coding & AlgorithmsOnsite - MetaMediumSoftware EngineerCompute Stock Profit with One or Unlimited Transactions
Compute maximum stock profit for both one transaction and unlimited nonoverlapping transactions in linear time, returning zero when no positive trade is available.
Coding & AlgorithmsOnsite - MetaHardSoftware EngineerCompute the Dot Product of Sparse Vectors
Compute the dot product of two sparse vectors stored as sorted index-value pairs without expanding them. A two-pointer traversal should visit only nonzero entries, multiply matching indices, and accumulate safely in a wide integer type.
Coding & AlgorithmsOnsite - MetaMediumSoftware EngineerCompute unmatched parentheses length
This problem tests your ability to use stack-based logic to track balanced sequences and identify the length of characters that remain unmatched after processing all valid pairs.
Coding & AlgorithmsOnsiteStringStackGreedy - MetaMediumSoftware EngineerCount Distinct Values in a Sorted Array When K Is Small
Count distinct values in a sorted array efficiently when the number of unique values is much smaller than the array length. The challenge tests adapting complexity to output diversity rather than raw length, meeting an O(k log n) target with constant auxiliary space, and handling empty or uniform arrays.
Coding & AlgorithmsOnsite - MetaMediumSoftware EngineerCount Subarrays with a Target Sum
Tests the ability to use prefix sums and hash tables to count contiguous subarrays summing to a target in linear time, handling negative values and zeros.
Coding & AlgorithmsOnsitearraysprefix-sumhash-table - MetaHardSoftware EngineerCount three-digit numbers with distinct digits
This problem tests your ability to count numbers satisfying digit-based constraints within a specific range using combinatorial logic or efficient iteration.
Coding & AlgorithmsOnsiteMathCombinatoricsImplementation - MetaMediumSoftware EngineerDemonstrate communication and teamwork
This set of behavioral prompts evaluates communication, teamwork, leadership, stakeholder explanation, conflict resolution, and self-reflection skills relevant to a software engineer role.
Behavioral & LeadershipOnsite - MetaMediumSoftware EngineerDescribe conflict resolution and initiative
This question evaluates conflict resolution, initiative, ownership, influence, and learning from failure within a Behavioral & Leadership context for a software engineer.
Behavioral & LeadershipOnsite - MetaHardSoftware EngineerDescribe conflict resolution and mentoring experiences
Prepare engineering manager or senior engineer behavioral answers for conflict resolution, proud projects, self-reflection, and mentoring. Includes STAR structures, sample story patterns, and pitfalls.
Behavioral & LeadershipOnsite - MetaMediumSoftware EngineerDescribe cross-team collaboration and learning from failure
This question evaluates a software engineer's proficiency in cross-team collaboration, conflict and constraint management, ownership alignment, and reflective learning from project failure, emphasizing interpersonal, leadership, and accountability competencies.
Behavioral & LeadershipOnsite - MetaMediumSoftware EngineerDescribe resolving conflict by persuading others
This question evaluates persuasion, conflict-resolution, communication, and stakeholder-management competencies and falls within the Behavioral & Leadership domain.
Behavioral & LeadershipOnsite - MetaMediumSoftware EngineerDesign 24-Hour Ephemeral Stories for a Photo and Video Sharing App
A system design question on ephemeral stories that followers can view for 24 hours before they disappear, covering media upload, the tray of accounts with unwatched stories, playback, and viewer tracking. It tests expiry semantics, fan-out for popular authors, watched-state storage, and media delivery.
System DesignOnsite - MetaHardSoftware EngineerDesign Boolean Search for Status Posts
This problem tests the ability to design an inverted index system that supports complex logical queries, high-concurrency updates, and consistent pagination over a distributed dataset.
System DesignOnsiteInverted IndexSearchDistributed Systems - MetaMediumSoftware EngineerDesign Boolean Search over User Status Posts
This problem tests the design of a scalable inverted index system capable of handling boolean queries (AND/OR/NOT) over a high-throughput stream of user status updates.
System DesignOnsiteInverted IndexBoolean SearchConcurrency