Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
On a lighter note, I recently saw a golfing challenge:
Measure the Diamond Road, on Stackexchange
Among "real" languages, there are currently Python and couple JS solutions with scores 59, 61, 55, which I'm embarrased to admit I can barely read. Another JS solution with score 52 seems to break rules with its "list of chars" input. It's been long time since I tried my hand in this, apparently it's now OK to keep function name in "header" and semicolon in "footer", so I wrote my code as such.
With result of 62, can't move any further:
can it be improved? Can we beat Python's 59?
Updated by GrandFather to remove pre tags and linkify link
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Trying to outgolf Python
by choroba (Cardinal) on Jul 18, 2023 at 12:22 UTC | |
|
Re: Trying to outgolf Python
by LanX (Saint) on Jul 17, 2023 at 13:54 UTC | |
by marto (Cardinal) on Jul 17, 2023 at 14:21 UTC | |
by Anonymous Monk on Jul 17, 2023 at 17:03 UTC | |
|
Re: Trying to outgolf Python
by harangzsolt33 (Deacon) on Jul 18, 2023 at 02:14 UTC | |
by eyepopslikeamosquito (Archbishop) on Jul 18, 2023 at 03:34 UTC | |
by LanX (Saint) on Jul 18, 2023 at 11:39 UTC |