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.
In a blog article, Icebox gave a lot of code golf tricks for Python: "Code Golf Cheat Sheet for Python."
This puzzle can be solved using the following concepts. Practice using these concepts and improve your skills.
This is a rather special programming challenge. This is the same problem as « Chuck Norris », 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
Binary is good! But unary is much better!
Test your encoding skills in this easy puzzle where you will be asked to transform a string into a “unary” string such as 0 00 000 0...