#2nd-largest
Read more stories on Hashnode
Articles with this tag
function findSecondLargest(arr) { // Sort the array in descending order arr.sort(function(a, b) { return b - a; }); // Return the element...