Day 3: Arrays - HACKERRANK - 10 Days of JavaScript

Опубликовано: 15 Октябрь 2024
на канале: Joshua
2,436
34

Support my channel by donating to my CashApp. Even $5 helps!
https://cash.app/$JoshuaCadavez

*******************************************************************************************
Or give advice or alternative solutions in the comments below!
Problem: https://www.hackerrank.com/challenges...

Complete the getSecondLargest function in the editor below. It has one parameter: an array, 'nums', of 'n' numbers. The function must find and return the second largest number in 'nums'.

More CodeSignal:    • CodeSignal  

More LeetCode:    • Leetcode  

More HackerRank:    • HackerRank  

*******************************************************************************************

Follow me on:
Twitter -   / joshuacadavez  
LinkedIn -   / joshuacadavez  
GitHub - https://github.com/JoshuaTheEngineer