C GCC, 40 bytes
f(int*a){a=*a^*++a?a[-(*a==a[1])]:f(a);}
Thanks to xibu for -5 bytes!
Thanks to ceilingcat for -2 bytes!
C GCC, 40 bytes
f(int*a){a=*a^*++a?a[-(*a==a[1])]:f(a);}
Thanks to xibu for -5 bytes!
Thanks to ceilingcat for -2 bytes!