What will I learn?
« Code Golfing » is a type of programming challenge aiming to shorten the length of a program. This often results in illegible code, but looking to save the most characters will get you to the core of your language and make you discover mechanisms that will help you better understand how it works under the hood.
External resources
Codingame ForumCode Golf (on Stack Exchange)Code GolfLearning Opportunities
This puzzle can be solved using the following concepts. Practice using these concepts and improve your skills.
Statement
This is a rather special programming challenge. This is the same problem as « Temperatures », an easy puzzle, but instead of simply solving it, now you need to do so with the least possible amount of characters.
Do not hesitate to take out your best tricks, to break all coding best practices, every saved character will get you closer to the top of the leaderboard!
A higher resolution is required to access the IDE
Story
It's freezing cold out there! Will you be able to find the temperature closest to zero in a set of temperatures readings?