Finding non-continuous numbers in an array

50 Views Asked by At

I was wondering if you had a column like

[8 8 8 8 8 1 4 4 4 1 1]'

What code could I write to find the numbers that are not repeated consecutively (non-contiguous)? In this case, what code would I have to write to find row 6? This is for big data.

--Dwight

0

There are 0 best solutions below