Mathworks Coding Interview Questions

32 DSA problems tagged as asked in Mathworks coding interviews and online assessments. Below are all 32: 6 easy, 15 medium and 11 hard. Start with the easy ones, then move to medium. Practise free on InternHack and track your progress.

Mathworks DSA problems, easiest first

  1. Convert Binary Number in a Linked List to Integer (Easy)
  2. Keyboard Row (Easy)
  3. Lexicographically Smallest Palindrome (Easy)
  4. Maximum Difference Between Increasing Elements (Easy)
  5. Pass the Pillow (Easy)
  6. Reshape the Matrix (Easy)
  7. Break a Palindrome (Medium)
  8. Count Vowel Strings in Ranges (Medium)
  9. Earliest Second to Mark Indices I (Medium)
  10. Find the Longest Equal Subarray (Medium)
  11. Maximum Number of Alloys (Medium)
  12. Maximum Palindromes After Operations (Medium)
  13. Minimum Cost to Connect Sticks (Medium)
  14. Minimum Cost Tree From Leaf Values (Medium)
  15. Minimum Equal Sum of Two Arrays After Replacing Zeros (Medium)
  16. Number of Divisible Triplet Sums (Medium)
  17. Remove Colored Pieces if Both Neighbors are the Same Color (Medium)
  18. Sell Diminishing-Valued Colored Balls (Medium)
  19. Shopping Offers (Medium)
  20. Task Scheduler (Medium)
  21. Total Cost to Hire K Workers (Medium)
  22. Binary Tree Cameras (Hard)
  23. Count Anagrams (Hard)
  24. Count Subarrays With Fixed Bounds (Hard)
  25. Count Vowels Permutation (Hard)
  26. Earliest Second to Mark Indices II (Hard)
  27. Last Substring in Lexicographical Order (Hard)
  28. Minimum Difficulty of a Job Schedule (Hard)
  29. Minimum Edge Reversals So Every Node Is Reachable (Hard)
  30. Reverse Nodes in k-Group (Hard)
  31. Split Array Largest Sum (Hard)
  32. String Transformation (Hard)

Prepare for the rest of the Mathworks process

Other companies