...

/

Challenge: Find Second Maximum Value in an Array

Challenge: Find Second Maximum Value in an Array

Try to solve the Find Second Maximum Value in an Array problem.

We'll cover the following...

Statement

Given an array of integers, nums, find the second maximum value from the array.

Constraints:

  • 22 \leq nums.length 103\leq10^3

  • 105-10^5\leq nums[i] 105\leq10^5

Examples

Access this course and 1400+ top-rated courses and projects.