Japt -h
, 12 11 1010 4 bytes
Takes inputI/O as ana digit array of digits.
k@¬èXü ÉÃrwl1
Explanation
:Implicit input of array U.
k :Filter the array to the elements that return false when...
@ :Passed through a function that...
¬ :Joins U to a string and...
èX :Counts the number of times the current element (X) appears in the string...
É :Minus 1.
:(The count of unique digits will be 1, 1-1=0, 0=false)
à :End function.
r :Reduce by...
w :Getting the greater of the current element and the current value.
:Implicit output of resulting single digit integer.