Find the highest unique digit Surprisingly we haven't had a simple &quot;find the highest digit&quot; challenge yet, but I think that's a little too trivial.
Given input of a non-negative integer, return the highest unique (ie not repeated) digit found in the integer. If there are no unique digits, your program can do anything (undefined behaviour).
The input can be taken as a single integer, a string, or a list of digits.
Test cases
12         -&gt; 2
0          -&gt; 0
485902     -&gt; 9
495902     -&gt; 5
999999     -&gt; Anything
999099     -&gt; 0
1948710498 -&gt; 7

This is code-golf so fewest bytes in each language wins!
05AB1E, 4 3 bytes

Saved 1 byte thanks to Mr. Xcoder notifying that a digit list is valid input.

¢ÏM


Try it online!

Explanation

¢     # count occurrences of each digit in input
 Ï    # keep only the digits whose occurrences are true (1)
  M   # push the highest