QUESTIONS BY COMPANY

Mathworks LeetCode Questions 2026

Browse LeetCode problems frequently asked by Mathworks. Filter by difficulty and timeframe to focus your interview prep.

Last updated: 20 Feb 2026

ProblemDifficultyFrequencyTopics
Maximum Number of AlloysMEDIUM
100%
ArrayBinary Search
Count AnagramsHARD
87.5%
Hash TableMathStringCombinatoricsCounting
Reshape the MatrixEASY
100%
ArrayMatrixSimulation
Remove Colored Pieces if Both Neighbors are the Same ColorMEDIUM
87.5%
MathStringGreedyGame Theory
Last Substring in Lexicographical OrderHARD
87.5%
Two PointersString
Minimum Cost Tree From Leaf ValuesMEDIUM
87.5%
ArrayDynamic ProgrammingStackGreedyMonotonic Stack
Earliest Second to Mark Indices IIHARD
87.5%
ArrayBinary SearchGreedyHeap (Priority Queue)
Earliest Second to Mark Indices IMEDIUM
87.5%
ArrayBinary Search
Maximum Palindromes After OperationsMEDIUM
100%
ArrayHash TableStringGreedySortingCounting
Split Array Largest SumHARD
50%
ArrayBinary SearchDynamic ProgrammingGreedyPrefix Sum
String TransformationHARD
62.5%
MathStringDynamic ProgrammingString Matching
Count Subarrays With Fixed BoundsHARD
87.5%
ArrayQueueSliding WindowMonotonic Queue
Keyboard RowEASY
87.5%
ArrayHash TableString
Total Cost to Hire K WorkersMEDIUM
100%
ArrayTwo PointersHeap (Priority Queue)Simulation
Break a PalindromeMEDIUM
50%
StringGreedy
Reverse Nodes in k-GroupHARD
62.5%
Linked ListRecursion
Pass the PillowEASY
87.5%
MathSimulation
Minimum Edge Reversals So Every Node Is ReachableHARD
75%
Dynamic ProgrammingDepth-First SearchBreadth-First SearchGraph
Number of Divisible Triplet SumsMEDIUM
62.5%
ArrayHash Table
Maximum Difference Between Increasing ElementsEASY
50%
Array

PREPARE FASTER

Need Help Solving These Problems?

CodingInterviewAI can instantly identify algorithms and generate optimal solutions for any LeetCode problem. Get step-by-step explanations and ace your next technical interview.

CodingInterviewAI logo

© 2026 CodingInterviewAI. All rights reserved

CodingInterviewAI

HomeBlogGive Feedback