Inspiration

Problem-solving is a must-have for cracking developer roles in good companies.

What it does

As the title suggests, the code finds the second largest element in a one-dimensional array of positive integers, handling edge cases such an empty array or a single repeating element.

How we built it

The Explore a new language challenge in GHW expects us to use a newly explored language in further submissions, so this problem was solved using JavaScript.

Challenges we ran into

What took 2 minutes to code in Python took 5 minutes to code in JavaScript, because I wasn't used to inserting semi-colons.

Accomplishments that we're proud of

That I got it right on the first submission without any syntax or logical errors.

What we learned

Solving array problems with JavaScript.

What's next for Second Largest Number in an Array

Possibly attempt to solve more problems using JavaScript.

Built With

Share this project:

Updates