matrix Interview Questions
75 interview questions in our bank cover matrix, most of them Coding & Leetcode-style Questions. They average 2.9/5 difficulty — medium — and each one was reported by a candidate after a real interview. Companies known to ask about matrix: Amazon, Glean, Google, Capital One, Pinduoduo, and 15 more.
Practice these on the problems board →Companies that ask about matrix
Question mix
- Coding & Leetcode-style Questions75
Difficulty
- 1/5 — warm-up1
- 2/5 — easy18
- 3/5 — medium48
- 4/5 — hard7
- 5/5 — very hard1
Questions tagged matrix
In-Place Sub-Matrix Move with Overlap
3/5Reported from a Microsoft interview, this advanced matrix manipulation challenge requires relocating a smaller sub-grid within a larger two-dimensional array entirely in-place. The primary hurdle is managing source and destination region overlaps correctly without overwriting unread data during the shift, while also clearing out abandoned cells. It tests your spatial reasoning, index manipulation, and ability to handle complex boundary conditions without allocating auxiliary memory grids. The complete problem statement and optimized model solution require a subscription.
Coding & Leetcode-style QuestionsMicrosoftMaximal Square and Maximal Rectangle in Binary Matrix
3/5Explore a classic two-dimensional matrix analysis challenge commonly asked by Databricks, focusing on identifying maximal uniform regions within binary data grids. This problem tests your ability to apply dynamic programming principles efficiently to compute the largest square and rectangular boundaries composed entirely of matching elements. Candidates must optimize spatial memory usage and runtime complexity while evaluating subgrid states. Access the complete problem description, analysis, and clean model solution through our subscription plan.
Coding & Leetcode-style QuestionsDatabricksMatrix Border Sort and Clockwise Fill
3/5Tackle this engaging matrix manipulation puzzle reported during Capital One software engineering interviews. This challenge evaluates your proficiency with multi-dimensional array traversal, boundary extraction, and precise coordinate mapping. You will need to carefully handle concentric layers and reinsert elements in a specific rotational direction without losing data integrity. Unlock the detailed problem statement, edge-case analysis, and fully implemented solution by securing a subscription.
Coding & Leetcode-style QuestionsCapital OneImplement Scaled Dot-Product Attention
3/5This Amazon interview task challenges engineers to construct the core scaled dot-product attention mechanism from scratch without masking layers. Candidates must correctly handle matrix dimensions for queries, keys, and values while applying numerical scaling and softmax transformations. The problem evaluates linear algebra fluency and tensor manipulation proficiency in machine learning frameworks. Unlock the full evaluation harness and expert solution code through a paid subscription.
Coding & Leetcode-style QuestionsAmazonMaximum Sum Path in a 2D Array
3/5In this Glean interview question, candidates must navigate a two-dimensional grid from the starting corner to the finish while maximizing the accumulated numerical value along the route. Restricted to specific directional movements, developers must apply dynamic programming principles to discover the optimal path. This challenge examines matrix traversal strategies and memoization techniques. Access the complete problem statement and a verified code solution with a subscription.
Coding & Leetcode-style QuestionsGleanMatch-Three Color Grid Elimination and Gravity
3/5This Capital One interview question evaluates your ability to simulate grid-based transformations and coordinate updates. You will work with a two-dimensional matrix where elements are marked for removal based on neighboring color matches, followed by a gravity phase that shifts remaining items downward. This challenge tests matrix traversal logic, state management, and efficient manipulation of grid data structures. The complete problem statement, comprehensive test cases, and a fully explained model solution require a subscription.
Coding & Leetcode-style QuestionsCapital OneSum of Squares per Sublist
1/5This straightforward Amazon coding challenge is designed to test fundamental iteration and mathematical accumulation skills on nested data structures. Given a collection of numerical sublists, your task is to compute the sum of squares for each individual inner group without relying on built-in shorthand reduction functions. It serves as a great warm-up for basic list comprehension and accumulator logic. Unlock the complete problem specifications and optimal Python solution with a subscription.
Coding & Leetcode-style QuestionsAmazonMinimum Steps in a Binary Grid
2/5Navigate a two-dimensional space containing open paths and impassable barriers to find the shortest route between a starting coordinate and a destination point. This frequently encountered coding challenge evaluates your ability to apply graph traversal techniques and shortest-path algorithms efficiently on a grid structure. Reported as an actual technical interview question at Amazon, it tests your proficiency with breadth-first search methodologies under spatial constraints. The complete problem statement, optimal algorithmic approach, and thoroughly tested source code require a subscription to access.
Coding & Leetcode-style QuestionsAmazonMaximum Greyness of a Pixel Grid
3/5Reported as an engaging assessment task from Amazon, this matrix manipulation challenge requires analyzing a two-dimensional grid populated by binary characters to determine extreme structural properties. Participants must compute a specific evaluation metric for every position, which depends on the distribution of elements across both the corresponding row and column, and ultimately identify the absolute peak value. This problem tests analytical thinking, matrix traversal techniques, and optimization strategies for grid-based data structures. Access to the full problem description, edge cases, and the complete reference solution requires a subscription.
Coding & Leetcode-style QuestionsAmazonTrapping Rain Water II in 2D Elevation Map
4/5Reported as an advanced coding challenge from Otter.ai, this problem extends traditional water accumulation puzzles into a multidimensional landscape. Participants are tasked with calculating the total volume of liquid that can be successfully retained across an uneven two-dimensional elevation grid after a simulated rainfall, respecting boundary limitations. This sophisticated exercise evaluates mastery over priority queues, matrix boundary traversal, and greedy algorithmic patterns. The complete problem text, detailed visuals, and optimal solution code require a subscription.
Coding & Leetcode-style QuestionsOtter.aiMinimum Rooks After Captures
3/5Combinatorial optimization on grid matrices frequently appears in technical screenings, as highlighted by this reported Amazon interview question. You are tasked with minimizing the number of pieces remaining on a board after applying specific capture rules along rows and columns. This puzzle examines your strategic thinking and ability to reduce complex matrix interactions to their simplest form. Access to the full problem details and efficient algorithmic solution requires an active subscription.
Coding & Leetcode-style QuestionsAmazonNumber of Islands and Grid BFS Variants
3/5This frequently reported ByteDance interview question evaluates your ability to navigate two-dimensional matrices using graph traversal techniques. You will be tasked with identifying distinct clusters of connected elements within a grid, alongside common variations such as computing region sizes and calculating boundaries. This exercise tests your proficiency in implementing breadth-first and depth-first search algorithms efficiently under constraints. To explore the complete problem statement, optimal algorithmic approaches, and fully working code implementations, a subscription is required.
Coding & Leetcode-style QuestionsByteDanceDesign a Tic-Tac-Toe System (k Players, n x n Board)
3/5Designing extensible game logic for multiple participants on a grid is an engaging system design challenge featured in Google coding interviews. This problem asks you to build a robust Tic-Tac-Toe system that accommodates a variable number of players and board dimensions while ensuring win conditions are tracked efficiently in constant time per move. The exercise tests your ability to maintain state matrices and optimize lookup performance. Unlock the full problem details and expert solution by subscribing.
Coding & Leetcode-style QuestionsGoogleNumber of Islands (LC 200)
3/5Evaluating spatial traversal skills is common in technical screenings, highlighted by this Oracle phone-screen question equivalent to a well-known LeetCode problem. The objective requires tallying isolated land formations within a two-dimensional matrix using standard graph exploration techniques while meticulously documenting performance metrics. Candidates must demonstrate fluency in recursive or queue-based traversal patterns alongside precise time and space complexity analysis. Unlock the complete problem guide, step-by-step walkthrough, and production-ready solution by securing a paid subscription today.
Coding & Leetcode-style QuestionsOracleGenerate Matrix B (2D Prefix Sum)
2/5This matrix transformation puzzle, commonly asked by Arista Networks, challenges developers to compute a two-dimensional prefix sum grid from a given input array. Each cell in the resulting structure must contain the cumulative sum of all preceding elements within the top-left rectangular region. Solving this efficiently demands a strong grasp of dynamic programming and matrix manipulation techniques to optimize computational overhead. Explore the full problem specifications and optimal solution by subscribing.
Coding & Leetcode-style QuestionsArista NetworksSelect Max Sum With Per-Row Caps
3/5Tackle an advanced optimization puzzle that requires selecting a precise subset of values from a matrix subject to strict row-specific limitations. This analytical challenge has appeared in coding interviews at Amazon, focusing on your ability to combine combinatorial search strategies with resource constraints. You will explore efficient techniques to maximize outcomes while respecting operational boundaries. Reviewing the full problem statement and expert reference solution requires a subscription.
Coding & Leetcode-style QuestionsAmazonNumber of Islands and Total Island Perimeter
3/5Analyze a grid-based spatial environment to simultaneously determine distinct regional clusters and calculate their aggregate boundary lengths. This classic graph traversal puzzle has been featured in technical interviews at ByteDance, testing your proficiency with matrix traversal techniques and spatial reasoning. You will develop robust algorithms to inspect connected components efficiently. Gaining access to the full problem context and model solution requires a subscription.
Coding & Leetcode-style QuestionsByteDanceImplement a 3x3 Tic-Tac-Toe Class
2/5Featured in Hebbia technical screenings, this coding problem requires you to implement a classic board game class that manages player turns, validates coordinate placements, and evaluates winning conditions on a standard grid. It tests your object-oriented fundamentals, state management, and basic matrix traversal logic to ensure rules are enforced accurately. To view the complete prompt details and the reference implementation, please consider subscribing.
Coding & Leetcode-style QuestionsHebbiaCount Square Submatrices with All Ones
3/5As a classic algorithmic puzzle often asked by Google, this task asks you to quantify all possible square subgrids entirely filled with ones within a binary matrix. You will need to account for overlapping regions of varying dimensions efficiently without resorting to brute-force enumeration. The challenge provides excellent practice for dynamic programming and matrix manipulation techniques. Unlock the comprehensive walkthrough and verified code implementation with a subscription.
Coding & Leetcode-style QuestionsGoogleGenerate an m x n Spiral Matrix
3/5This Pinduoduo interview question tasks programmers with generating a two-dimensional grid populated with sequential integers arranged in a winding, inward-turning path. Candidates must implement precise boundary tracking and directional state changes to fill every cell correctly without omissions or overlaps. This challenge tests multidimensional array handling, coordinate math, and directional control logic. The full problem details, boundary constraints, and optimal source code require a subscription to access.
Coding & Leetcode-style QuestionsPinduoduoLeftmost Column with at Least a One
2/5This reported Uber interview problem evaluates your ability to efficiently locate the earliest occurrence of a target element within a structured 2D grid using specialized interface restrictions. You will need to design an optimized search strategy that minimizes API lookups by exploiting the sorted nature of the rows. The complete problem statement and a fully verified model solution require a subscription.
Coding & Leetcode-style QuestionsUberCandy Crush Grid Matching, Clearing, and Gravity
3/5Simulating grid-based mechanics and iterative stabilization processes is a classic test of matrix manipulation and algorithmic thinking. This reported Roblox interview question requires you to detect contiguous matching runs of elements, clear them simultaneously, and apply gravity so that remaining items cascade downward until equilibrium is reached. It tests your proficiency with multidimensional arrays and recursive simulation loops. Access the complete problem guidelines and a thoroughly optimized model solution with a subscription.
Coding & Leetcode-style QuestionsRobloxMatrix Commands: Reverse Row, Swap, Rotate
2/5In this Capital One interview exercise, you are tasked with processing a series of structural transformations on a two-dimensional grid in place. The objective requires executing sequential commands involving row reversals, index swaps, and ninety-degree grid rotations while dynamically adjusting boundary dimensions. This problem evaluates your multidimensional array handling and state management under mutating constraints. Reviewing the comprehensive problem description and ideal solution requires a subscription.
Coding & Leetcode-style QuestionsCapital OneWord Search in a Grid
4/5In this classic interview challenge reported from Amazon, you must determine whether a specific character sequence can be constructed by traversing adjacent cells in a matrix. Each location can be visited at most once per path, requiring careful state management during traversal. This problem tests your mastery of depth-first search, backtracking, and matrix navigation techniques. To view the complete problem statement, constraints, and the optimal solution code, a subscription is required.
Coding & Leetcode-style QuestionsAmazonMinimum Path Sum
3/5Optimizing traversal routes across a matrix is a classic dynamic programming challenge often featured in coding evaluations for software engineering roles at Datadog. This problem tests your ability to compute the most cost-effective journey through a grid of numerical values while adhering to strict movement restrictions. You will need to apply efficient state-transition strategies to systematically determine the optimal accumulated weight from start to finish. Unlock the complete problem statement and verified model solution with a subscription.
Coding & Leetcode-style QuestionsDatadogBoggle Game: Find All Dictionary Words in a 2D Board
4/5Faced during a technical interview at Chewy, this puzzle requires scanning a grid of letters in multiple directions to locate valid terms from a large vocabulary set. It tests your proficiency with recursive graph traversals, backtracking, and prefix tree data structures to prune invalid search paths early. Crafting an efficient solution demands careful handling of grid boundaries and character state tracking. Access the full problem details and the complete reference solution with an active subscription.
Coding & Leetcode-style QuestionsChewyMaximal Island Area in a Matrix
3/5In this Chewy interview question, you are given a binary grid and asked to determine the maximum expanse formed by connected groups of identical elements. The core challenge requires implementing graph traversal algorithms such as breadth-first search or depth-first search to map boundaries and compute aggregate regions efficiently. Additionally, you must construct robust validation test cases using random matrix generation tools to verify your code's correctness. Unlock the complete problem text, edge-case analysis, and expert model solution with a subscription.
Coding & Leetcode-style QuestionsChewyBalloon Explosion
3/5Encountered during eBay coding interviews, this puzzle requires you to simulate a grid-based matching game involving colored elements and cascading physics rules. You must write an algorithm that detects adjacent matching groups, removes them, and correctly applies gravity so remaining items shift downward into vacant positions. This exercise evaluates your grid traversal logic, simulation accuracy, and problem-solving creativity. Unlock the full problem details and reference solution with a subscription.
Coding & Leetcode-style QuestionseBayConnect Four Static Board Win Check
2/5Tackle this reported Virtu Financial interview question designed to evaluate matrix traversal and pattern recognition skills. You are tasked with analyzing a standard two-dimensional grid representing a classic board game to determine if any player has successfully aligned four matching tokens horizontally, vertically, or diagonally. The exercise tests your ability to write clean boundary checks and conditional logic for grid-based games. Unlock the full problem breakdown and expert solution by subscribing.
Coding & Leetcode-style QuestionsVirtu FinancialLargest Square of 1's
3/5In this coding challenge reported during FactSet interviews, you are tasked with examining a grid containing binary values to locate and measure the largest contiguous submatrix made entirely of specific target elements. This problem tests your spatial reasoning and dynamic programming abilities on two-dimensional arrays. To view the complete problem instructions and the optimal source code implementation, a subscription is required.
Coding & Leetcode-style QuestionsFactSetMinesweeper Board Generation
2/5Explore a classic grid-based programming challenge reported during technical interviews at Block, where you must design a procedural generator for a popular retro puzzle game. This task requires you to strategically scatter hidden hazards across a two-dimensional matrix of specified dimensions while ensuring empty zones are correctly formatted. It tests your command over randomized positioning algorithms, matrix manipulation, and basic state initialization logic. Elevate your coding interview preparation by practicing this clean implementation exercise. The full problem and model solution require a subscription.
Coding & Leetcode-style QuestionsBlockStandardize Each Column of a 2D Tensor
3/5In this numerical computing challenge reported during Bridgewater interviews, programmers are asked to normalize a two-dimensional tensor column by column using statistical z-scores. The task requires calculating population standard deviations and means efficiently to handle large dataset matrices without performance bottlenecks. This exercise tests your familiarity with tensor manipulation libraries, vectorized operations, and numerical stability. Unlock the full problem details, mathematical guidelines, and a high-performance model solution by purchasing a subscription.
Coding & Leetcode-style QuestionsBridgewaterCopy an Image Matrix
2/5This Luma AI interview question asks you to implement a memory-safe deep copy operation for a two-dimensional grid representing a grayscale digital image. You will parse raw dimensions and pixel values from standard input, construct an independent replica of the matrix, and output the duplicated grid without relying on external utility libraries. This task examines your foundational grasp of multi-dimensional array manipulation and memory allocation in programming. Unlock the complete problem details and optimal model solution with a subscription.
Coding & Leetcode-style QuestionsLuma AIEarliest Time for a Fully-Colored Square
4/5This Amazon coding challenge explores spatial progression and grid transformations over a timeline. You are tasked with finding the exact moment a subgrid of a specified dimension becomes completely filled through sequential coordinate updates. The problem assesses your efficiency in handling matrix operations and spatial searching algorithms under temporal constraints. To view the complete prompt description and the model solution, please subscribe to our platform.
Coding & Leetcode-style QuestionsAmazonFind Minimum Number in a Rotated Matrix
2/5Featured frequently in technical assessments at Fortinet, this algorithmic problem requires you to scan a two-dimensional grid where rows and columns follow a non-decreasing sorted order to identify the smallest value present. The challenge tests your ability to design efficient search strategies that exploit matrix monotonicity rather than resorting to exhaustive linear scans. Developing an optimal solution demands clever boundary management and logarithmic search principles. To unlock the complete problem statement, detailed constraints, and a fully explained reference implementation, a subscription is required.
Coding & Leetcode-style QuestionsFortinetMinimum Distance in Grid to Nearest CVS
3/5Tackle this classic grid traversal challenge featured in software engineering assessments at GE Healthcare. The task involves evaluating spatial coordinates to determine optimal pathways while minimizing aggregate travel distance to designated target locations. You will analyze the trade-offs between brute-force techniques and more sophisticated algorithmic approaches. To view the complete problem breakdown and the optimal source code solution, unlock your subscription today.
Coding & Leetcode-style QuestionsGE HealthcareMinesweeper Board with Mine Counts
3/5Build a classic grid-based utility function reminiscent of technical rounds at Block, where you must programmatically populate a hazard-detection matrix. The assignment tests your matrix traversal abilities and neighborhood boundary checks to accurately compute adjacent threat tallies for every empty coordinate. Access to the full specifications, edge-case analysis, and a clean algorithmic solution requires a subscription.
Coding & Leetcode-style QuestionsBlockWord Search With Diagonals and Reuse
3/5Reported as an Amazon interview problem, this challenge expands upon the classic grid search by allowing movement in all eight directions as well as the reuse of individual cells. You are required to determine whether a target string can be constructed through a continuous path of adjacent characters on a two-dimensional board. This task tests your depth-first search capabilities, recursion depth management, and grid traversal techniques. Gain immediate access to the full problem text and optimal model solution with a subscription.
Coding & Leetcode-style QuestionsAmazonNumber of Islands Variant
3/5This classic grid traversal puzzle is featured as a reported interview question from Illumio. The challenge requires you to analyze a two-dimensional matrix filled with binary values representing land and water, where adjacent land cells group together to form distinct territories. Your goal is to accurately compute the total number of independent land masses using standard matrix exploration techniques. This question tests your foundational depth-first or breadth-first search implementation abilities. Unlock the full problem details and expert model solution with a subscription.
Coding & Leetcode-style QuestionsIllumioSimulate a Board Game
3/5Encountered as a technical interview question at Chime, this problem requires you to simulate a turn-based board game involving two players on a grid of configurable dimensions. You must correctly interpret a sequence of dynamic actions that include placing pieces and shifting existing ones in various directions, subsequently tracking the progression until a game outcome is reached. This exercise evaluates your state management, simulation design, and edge-case handling capabilities. Gain access to the full problem instructions and complete model solution through a subscription.
Coding & Leetcode-style QuestionsChimeShortest Path in a Grid (DFS/BFS) with DFS Backtracking + Memo/DP Follow-up
3/5This AppLovin interview question tests your pathfinding expertise by asking you to find the shortest route between two designated points on a grid obstructed by barriers. You will need to implement traversal strategies, compare search paradigms, and handle edge cases where destinations are unreachable. The exercise evaluates your proficiency with graph traversal algorithms and optimization techniques like memoization. Get full access to the complete problem breakdown and the verified model solution with a paid subscription.
Coding & Leetcode-style QuestionsAppLovinTranspose an Image Matrix
2/5Grid manipulation and matrix transformations frequently appear in foundational coding assessments, such as this pixel-processing puzzle reported from Luma AI. The task challenges developers to flip a two-dimensional integer array along its diagonal axis, effectively swapping row and column indices without relying on external helper libraries. It tests your fluency with multi-dimensional array indexing, memory layout, and boundary management in raw code. Review the complete problem statement, formatting guidelines, and optimal solution by subscribing today.
Coding & Leetcode-style QuestionsLuma AIMaximum-Sum Path in a Matrix Without Revisiting Cells
5/5This Goldman Sachs interview challenge asks you to discover an optimal trajectory through a grid containing positive and negative numbers without stepping on any coordinate more than once. It heavily tests advanced dynamic programming, backtracking, and state management strategies for matrix navigation. To access the complete problem description and optimal algorithmic solution, a subscription is required.
Coding & Leetcode-style QuestionsGoldman SachsSum of Submatrix
2/5This BlackRock algorithmic challenge requires you to compute cumulative values across rectangular subregions within a two-dimensional grid efficiently. It tests your mastery of prefix sum techniques to answer range queries in constant or optimal time. You will need to handle matrix boundaries and coordinate mappings cleanly. The complete problem specifications and optimal solution code require a subscription.
Coding & Leetcode-style QuestionsBlackRockSpiral Matrix Traversal
2/5Practice a classic matrix traversal problem frequently featured in Goldman Sachs coding rounds. The objective is to extract and sequence all elements of a two-dimensional grid by moving along the outer boundaries in a concentric, inward path. This task evaluates your spatial reasoning, index management, and boundary control under various dimensions. Reviewing the comprehensive problem breakdown and optimal code requires an active subscription.
Coding & Leetcode-style QuestionsGoldman SachsCount Black Cells in Submatrices
3/5Reported from Anomali interviews, this grid-based puzzle asks you to analyze a matrix with designated coordinate markers to tally regional subgrid densities containing varying counts of marked cells. It tests your spatial reasoning, matrix traversal, and efficient window-counting techniques. To read the full problem description, constraints, and verified model solution, a subscription is needed.
Coding & Leetcode-style QuestionsAnomaliMatrix Product Computation
3/5This foundational linear algebra challenge, reported during interviews at GEICO, requires you to compute the product of two multidimensional numeric arrays while respecting specific structural constraints. The exercise evaluates your grasp of matrix dimensions, algorithmic efficiency, and how to handle incompatible shapes gracefully. Implementing this function efficiently involves mastering nested iteration and understanding the time and space trade-offs associated with computational mathematics. To view the complete problem statement and study a robust model solution, a subscription is required.
Coding & Leetcode-style QuestionsGEICOGrid Flower Placement
3/5Reported as a Google interview task, this puzzle involves arranging botanical items across a matrix subject to specific spatial spacing rules. Candidates must determine valid configurations or find the peak density of placements while respecting adjacency restrictions between items. This exercise evaluates spatial reasoning, backtracking, and constraint satisfaction techniques. Access the complete problem description, complexity analysis, and verified model solution by acquiring a subscription.
Coding & Leetcode-style QuestionsGoogleMax Harvested Crops
3/5In this Hudson River Trading interview challenge, you must determine the maximum agricultural yield obtainable by cutting straight downward through a grid while harvesting adjacent plots on either side of your trajectory. The problem tests your spatial reasoning, prefix-sum optimization techniques, and ability to efficiently compute lateral aggregates along vertical slices. Unlock the comprehensive editorial, time complexity analysis, and fully verified model solution with a paid subscription.
Coding & Leetcode-style QuestionsHudson River TradingMax Sum of a Sub-Rectangle No Larger Than K (LC 363)
4/5Determine the largest possible sub-grid summation within a two-dimensional matrix that remains beneath a specified upper limit, a classic advanced algorithmic challenge reported during interviews at XPeng. This problem tests your ability to combine two-dimensional prefix sums with efficient range search data structures like binary search trees. Gain access to the full problem text and optimal solution strategy with a subscription.
Coding & Leetcode-style QuestionsXPengWord Search
3/5This Glean interview question tests graph traversal and backtracking strategies on a two-dimensional character grid. Applicants must determine whether a specific text sequence can be formed by following adjacent horizontal and vertical steps without reusing the same matrix cell. This classic problem evaluates your mastery of depth-first search, state tracking, and recursive pathfinding optimization. Review the comprehensive explanation and complete solution code by acquiring a subscription.
Coding & Leetcode-style QuestionsGleanRotate Image In Place
3/5This classic matrix manipulation challenge, frequently featured in Uber technical screens, asks you to rotate a square digital image by a fixed ninety-degree angle. The core test centers on your ability to perform spatial transformations in place without allocating extra memory matrices, requiring careful handling of layer boundaries and indexing logic to avoid off-by-one errors. Reviewing the complete problem description, step-by-step spatial diagrams, and the optimal coding solution requires an active subscription.
Coding & Leetcode-style QuestionsUberMinesweeper Reveal
3/5Practice this Pinduoduo coding interview challenge where you must simulate state transitions on a two-dimensional grid based on user interaction coordinates. The task evaluates your graph traversal skills, recursion or queue management, and ability to handle cascading reveals when interacting with blank areas or numbered safety clues. You must carefully manage different cell states and boundary conditions to ensure accurate board updates. Unlock the complete problem statement and an optimal model solution by acquiring a subscription.
Coding & Leetcode-style QuestionsPinduoduoRotate an n x m Matrix 90 Degrees Clockwise
2/5Frequently encountered in Google technical screens, this exercise requires you to take a rectangular grid of arbitrary dimensions and transform its orientation by turning it a quarter-turn clockwise. It tests multidimensional array indexing and spatial awareness without relying on square matrix constraints. To read the full problem description and explore the model solution, subscribe today.
Coding & Leetcode-style QuestionsGoogleMinimum Path Sum in a Grid
2/5This classic coding challenge, frequently featured in interviews at Amazon, requires finding the optimal traversal path through a numeric grid from the top corner to the bottom corner. Restricted to moving only right and downward, candidates must compute a route that minimizes the cumulative sum of visited cells. The exercise evaluates foundational dynamic programming and matrix traversal skills. Unlock the complete problem description, complexity analysis, and verified model solution with a paid subscription.
Coding & Leetcode-style QuestionsAmazonMinesweeper Board Update
3/5Featured in a Nuro coding assessment, this problem simulates the classic Minesweeper mechanics where a user click triggers board updates, revealing empty zones, mine counts, or hidden dangers. You must apply recursive traversal or breadth-first search techniques to propagate revealing moves correctly according to adjacent mine clues. This challenge evaluates your grid traversal proficiency and state-machine implementation skills. To read the complete problem statement and study the optimal solution, a subscription is required.
Coding & Leetcode-style QuestionsNuroImplement Tic-Tac-Toe
2/5As reported in an Airwallex interview, this coding challenge invites you to design a fully functional Tic-Tac-Toe game on a standard three-by-three grid that tracks player moves and instantly determines winning conditions. You will focus on efficient state tracking to validate rows, columns, and diagonals dynamically after every turn without unnecessary board scans. This problem evaluates your object-oriented design principles and real-time game logic implementation. Unlock the complete problem definition and model solution by getting a subscription.
Coding & Leetcode-style QuestionsAirwallexImplement the 2048 Game (Board Move/Merge and Game Over Detection)
3/5Mastering grid-based puzzle mechanics is essential for this popular Glean interview challenge, which asks you to simulate the core rules of a sliding tile game. Candidates must programmatically handle directional shifts, combine identical adjacent values according to specific merging logic, and determine when no valid moves remain to trigger a game over state. This exercise evaluates your ability to manage matrix transformations and edge cases efficiently. Accessing the complete problem description, architectural breakdown, and optimal model solution requires a subscription.
Coding & Leetcode-style QuestionsGleanMinimum Distance to Nearest Locker
3/5In this classic matrix traversal problem reported during Amazon interviews, you are tasked with computing the shortest Manhattan distance from every cell in a grid to its nearest designated point. The exercise evaluates your proficiency with graph algorithms, specifically breadth-first search and multi-source shortest path techniques on a two-dimensional plane. Mastering this challenge helps build intuition for spatial mapping and grid optimization tasks. Unlock the full problem description and comprehensive model solution with a subscription.
Coding & Leetcode-style QuestionsAmazonCount Islands per Distinct Number
3/5This grid traversal problem, commonly asked at Amazon, requires you to analyze a matrix containing various integer values and count isolated connected components for each unique identifier. It tests your proficiency with graph search algorithms and spatial indexing structures to properly categorize multi-valued spatial regions. To view the full problem statement and clean code solution, please upgrade to a paid subscription.
Coding & Leetcode-style QuestionsAmazonBoard Coloring and Query Processing
3/5This grid-based query processing problem, reported in interviews with PayPay, challenges you to manage cell color states on a board while dynamically searching for the nearest available white spaces in multiple cardinal directions. You will need to design an efficient data structure capable of handling frequent state modifications and rapid directional lookups without performance degradation. It thoroughly examines your algorithmic efficiency and spatial reasoning abilities. Unlock the complete problem details and optimal implementation with a subscription.
Coding & Leetcode-style QuestionsPayPayRotate Image 90 Degrees In Place
3/5This Apple coding interview question requires you to manipulate a square two-dimensional grid representing a digital image by rotating it ninety degrees clockwise. The core constraint is that the transformation must happen entirely in place without allocating extra matrix memory for the output. Solving this efficiently demands a strong spatial understanding of matrix coordinates and algorithmic traversal patterns. Unlock the complete problem description and clean model solution with a subscription.
Coding & Leetcode-style QuestionsApplePath Exists in a Binary Maze
2/5Explore a classic grid-traversal puzzle frequently encountered in Amazon interview loops, focused on determining route viability through an obstructed matrix. Candidates are tasked with identifying whether an open path exists between two specific coordinates within a grid containing passable and blocked cells. The exercise evaluates graph search fundamentals using either breadth-first or depth-first traversal strategies. The complete problem details and optimal model solution require a subscription.
Coding & Leetcode-style QuestionsAmazonFind the Celebrity with Variations
3/5Reported as a HubSpot interview problem, this challenge requires identifying a unique individual in a group who is recognized by everyone else while knowing nobody except themselves. You will explore linear time solutions using specialized query logic, alongside advanced edge cases like handling cycles or multiple targets. To review the full problem description and expert code solutions, a subscription is required.
Coding & Leetcode-style QuestionsHubSpotWord Search + in-place marking optimization
3/5This algorithmic problem, highlighted during Turo recruitment loops, tests your ability to locate specific letter sequences within a two-dimensional character matrix. The exercise evaluates depth-first search traversal techniques alongside memory optimization strategies that modify the board state during execution without extra space. Mastering this puzzle sharpens your recursive tracking and state-reversal skills. Unlock the complete walkthrough and optimized implementation details by subscribing today.
Coding & Leetcode-style QuestionsTuroCount Islands Not Touching the Border
4/5This Amazon coding challenge involves processing a 2D grid representing a map of land and water. Your objective is to identify and count only those landmasses, or "islands," that are entirely enclosed by water and do not touch any of the grid's boundaries. Any island that is connected, even partially, to the edge of the map should be effectively removed or ignored. This problem is a classic test of graph traversal algorithms like Depth-First Search (DFS) or Breadth-First Search (BFS) and careful boundary condition handling. The full problem description and a detailed model solution are available with a subscription.
Coding & Leetcode-style QuestionsAmazonSpiral Matrix
3/5This Pinduoduo coding challenge requires you to navigate a two-dimensional grid in a specific pattern. Given an m x n integer matrix, your goal is to extract all its elements by traversing them in a clockwise spiral sequence, beginning from the top-left corner. This problem primarily tests your ability to handle matrix boundaries and implement precise traversal logic, often involving managing multiple pointers or boundary variables. The full problem and model solution require a subscription.
Coding & Leetcode-style QuestionsPinduoduoMaximum Sub Square Matrix Sum Less Than K
3/5Highlighted in technical assessments at IMC Trading, this problem asks you to find the maximum possible dimension of a square submatrix within a larger grid such that every potential placement of that size maintains a cumulative sum below a given threshold. Candidates must devise an efficient method to evaluate contiguous grid regions and determine the largest valid boundary constraint. The exercise tests multidimensional array manipulation, optimization strategies, and prefix sum techniques. Get full access to the complete problem description and model solution with a subscription.
Coding & Leetcode-style QuestionsIMC TradingImplement Ultimate Tic-Tac-Toe
4/5Mastering complex game logic is essential for this popular Hebbia interview question, which challenges candidates to implement a multi-layered board game featuring nested grids and strict move-constraint mechanics. This exercise tests state management, board validation, and conditional rule enforcement across interconnected sub-games. Candidates must design an efficient class structure capable of tracking active sub-boards and determining overall victory conditions under tight constraints. Access to the complete problem breakdown and optimal model solution requires a paid subscription.
Coding & Leetcode-style QuestionsHebbiaMinimum Manhattan Distance Between 'X' and 'Y' in Matrix
2/5This reported Glean interview question challenges you to find the shortest spatial separation between two distinct target markers inside a grid populated by various symbols. Candidates must efficiently compute the grid-based distance without resorting to overly sluggish exhaustive searches. It evaluates your grasp of coordinate traversal strategies and graph search fundamentals. Unlock the full problem breakdown and complete tested code solution with a subscription.
Coding & Leetcode-style QuestionsGleanRotate a Square Matrix 90 Degrees Clockwise
2/5This Amazon interview challenge requires you to take a square grid of data and perform a clockwise rotation of ninety degrees directly within the existing memory allocation. The core difficulty lies in manipulating array indices accurately to shift elements along their proper circular paths without utilizing extra storage space. Access the comprehensive problem walkthrough and fully tested reference solution by upgrading to a paid subscription.
Coding & Leetcode-style QuestionsAmazonMatrix Multiplication
3/5Practice a fundamental linear algebra computation challenge reported from WeRide technical interviews. This problem requires you to compute the product of two multi-dimensional matrices while properly validating dimensional compatibility and handling error conditions. It examines your command over multi-dimensional array traversal, inner product calculations, and edge-case validation. The full problem details and efficient reference solution are available exclusively to subscribers.
Coding & Leetcode-style QuestionsWeRideSimulate Connect Four
3/5Reported as a technical interview task at Square, this challenge requires you to build a simulation engine for a grid-based alignment game. You must manage a two-dimensional layout, process piece placements dynamically, and continuously evaluate win conditions across orthogonal alignments using traversal techniques. It tests your state management and matrix manipulation capabilities under game rules. Unlock the full question description and verified model solution with a subscription.
Coding & Leetcode-style QuestionsSquareSearch a 2D Matrix
3/5This Apple interview question asks candidates to determine whether a specific value exists within a two-dimensional grid structured with ordered rows and sequential boundaries. The problem evaluates logarithmic search strategies and matrix traversal techniques to achieve optimal time complexity. It is a classic test of binary search adaptation on structured multi-dimensional data. Detailed problem constraints and the complete model implementation require an active subscription.
Coding & Leetcode-style QuestionsAppleSet Matrix Zeros (in-place) (LC 73)
3/5Examine a classic matrix manipulation puzzle commonly posed during technical screenings at Oracle, where developers must modify a two-dimensional grid in place. The objective requires setting entire rows and columns to zero whenever a zero cell is encountered, all without allocating supplementary memory structures. Interviewers frequently expand this challenge by introducing non-rectangular data shapes and generalized marker types to test adaptability. Unlocking the full problem description and comprehensive solution demands a subscription.
Coding & Leetcode-style QuestionsOracle
Studied alongside
matrix interview FAQ
- How many matrix interview questions are there?
- 75 reported questions, mostly Coding & Leetcode-style Questions.
- Which companies ask matrix questions?
- Amazon (15), Glean (4), Google (4), Capital One (3), Pinduoduo (3), ByteDance (2), Oracle (2), Hebbia (2).
- How hard are matrix questions?
- They average 2.9 out of 5: 1 at 1/5, 18 at 2/5, 48 at 3/5, 7 at 4/5, 1 at 5/5.