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

54.43% Correct | 45.57% Incorrect
Last Solution submitted on Apr 24, 2025

Problem Comments

Solution Comments

Show comments
LLMs with MATLAB updated to support the latest OpenAI Models
Large Languge model with MATLAB, a free add-on that lets you access...
0
3

Problem Recent Solvers40

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!
Go to top of page