srinivasboga / Boga_R-D

0 stars 0 forks source link

Find the Second Highest num from an array #2

Open srinivasboga opened 21 hours ago

srinivasboga commented 21 hours ago

Summary: Create a function to find the second highest number in an array.

Checkouts

Example Input/Output:

Input: {5, 13, 4, 21, 13, 27, 2, 59, 59, 34} Output: 59 (the second highest number)

Additional Notes:

Ensure to validate the input for edge cases, such as empty arrays or arrays with only one distinct element.

an-kum commented 4 hours ago

Hello, I am new to GitHub, and I want to contribute this one as my first issue.