Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rodolfoghi/freecodecamp-code-challengs
https://github.com/rodolfoghi/freecodecamp-code-challengs
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/rodolfoghi/freecodecamp-code-challengs
- Owner: rodolfoghi
- Created: 2024-05-05T22:34:45.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-05-05T22:46:01.000Z (8 months ago)
- Last Synced: 2024-05-05T23:32:23.822Z (8 months ago)
- Language: Go
- Size: 0 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# freecodecamp-code-challengs
## 2024-05-03
@Code Challenge No luck, here. I'm gonna have to buy a new generator, so it's time to go shopping! You know what they say... "First is the worst, second is the best". I think I'll buy the second most expensive generator.
**Here is your challenge**: Write a function such that, when given an unsorted array of numbers, the function returns the second highest number.
* `secondLargest([10, 40, 30, 20, 50])` should return `40`.
* `secondLargest([25, 143, 89, 13, 105])` should return `105`.
* `secondLargest([54, 23, 11, 17, 10])` should return `23`.You may use any language you'd like to solve this challenge. Hopefully I can afford the generator you pick...
### My solutions
* [Go](./2024-05-03/go/second_largest.go)