Second largest
mediumLists20 XP
Return the second largest different number in nums. If there isn't one, return None (JavaScript: null).
Examples
- Input: nums = [4, 9, 7, 9]Output: 7
- Input: nums = [5, 5]Output: null
Examples use JSON: true/false/null are True/False/None in Python.