UtilityToolsLab

© 2026 UtilityToolsLab. All rights reserved.

Privacy Policy·Terms of Service·Sitemap
HomeCompetitive ProgrammingMEX Calc

Related Tools

Code FormatterMatrix GeneratorComplexity CalcBit VisualizerBitmask PlannerPrime FactorsInterval MergerMatrix RotationPBDS GeneratorSegment TreeGraph VisualizerStress TesterModulo CalcBinary VisualizerConvex HullPath Finder

MEX Array Calculator

Input a comma-separated array and see the MEX (Minimum Excluded) computed step-by-step with frequency table and visual walkthrough.

How to Use

  1. 1Open MEX Array Calculator above. No signup or installation needed.
  2. 2Type or paste your input. Everything runs locally in your browser — nothing leaves your device.
  3. 3See results instantly. Hit Copy to grab the output.
  4. 4Star the tool to save it to Favorites for quick access next time.

Frequently Asked Questions

Is MEX Calc free?

Yes, completely free. No sign-up, no credit card, no usage limits.

Do you store my data?

Never. Everything runs 100% in your browser. Nothing is uploaded to any server.

Does it work on mobile?

Yes. All tools are fully responsive and work on phones, tablets, and desktops.

Input array (5 elements):

20153

MEX Computation Steps

0✅ 0 is in the array — skipfreq[0] = 1
1✅ 1 is in the array — skipfreq[1] = 1
2✅ 2 is in the array — skipfreq[2] = 1
3✅ 3 is in the array — skipfreq[3] = 1
4❌ 4 is NOT in the array — MEX found!freq[4] = 0

MEX of the array

4

The smallest non-negative integer not present in the array.

Frequency Table

val0×1
val1×1
val2×1
val3×1
val5×1