We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Day 3: Arrays
Day 3: Arrays
Sort by
recency
|
1477 Discussions
|
Please Login in order to post a comment
function getSecondLargest(nums) {
}
Says constraint of n can be 1, but it MUST be at least 2 for this exercise.
**Simple and Short Solution **
function getSecondLargest(nums) { // Complete the function let fun = nums.sort(function(a,b){return b-a}) let rem = [] for (let i = 0;i
}