Can you recommend any freely available books about code golfing in general and especially in Java and C++?
|
When it comes to golfing in Java, it's not to be recommended. Actually, I would go so far as to say (paraphrasing E. W. Dijkstra) that it cripples the mind, and therefore should be regarded as a criminal offense. If you insist on doing codegolf in Java, all the basic stuff you need is found in java.util.Scanner (parsing input), java.math.BigInteger, and java.lang.String. In addition, the syntax for regexes and print formatting will come in handy. |
|||||||||
|
|
Mark Byers maintains a golfing tips site. It's not a book per se, but, you may find some gems there! |
|||||
|
|
There are at least two books about golfing:
Other recommended reading:
|
||||
|
|
|
"the zen of optimization" by Michael Abrash has a few sections on optimizing assembly code for size. I remember there was a chapter where he squeezed every spare byte out of a ridiculously small sort function. |
||||
|
|
tipstag – marcog Jan 30 '11 at 9:19