Find the outcast - MATLAB Cody - MATLAB Central

Problem 43220. Find the outcast

Difficulty:Rate

All pairs have the same difference except for one. Output the index of the latter

Example:

 input =[0 1;
         1 0;
         2 3;
         4 5;]
output = 2;

Solution Stats

55.0% Correct | 45.0% Incorrect
Last Solution submitted on Aug 23, 2025

Problem Comments

Solution Comments

Show comments
Join Cody Contest 2025 — Have Fun and Win Prizes!
...
We’re excited to invite you to Cody Contest 2025! 🎉 Pick a team,...
Dive Into Hands-On Learning at MATLAB EXPO 2025 – Register Now!
Get ready to roll up your sleeves at MATLAB EXPO 2025 –...
0

Problem Recent Solvers41

Suggested Problems

More from this Author43

Problem Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!