Biggest Single Number
nums has a column num of ints. A number is single if it appears in exactly one row. Return the largest single number, or -1 if there is none.
Example 1
nums {"num":[8,8,3,1,3,6]}
returns 6
Single numbers are 1 and 6; the largest is 6.
Constraints
- The tables are small
Write it in your browser, against the clock. The model solution, stepped through line by line, comes after.