← 返回 meta 的题目列表Find the Second Largest Integer from Digits
类型:online_judge
Given a list of digits (which may contain duplicates), find the second largest integer that can be formed from these digits. Return this integer. Input Format: digits is a list containing several digits. Output Format: Return the integer if one can be found; otherwise, return -1.
Example
Input
[3, 3, 3]