---
title: Code golf
slug: code-golf
qid: 
snapshot: enwiki-001376372563
content_hash: 
license: CC BY-SA 4.0
source: https://en.wikipedia.org/w/index.php?oldid=1376372563
tags: [108853462, 22936625, 23603337, 23888906, 24043274, 24745122, 26220375, 40238343, 89061558]
---

# Code golf

> [!note] Provenance
> Snapshot `enwiki-001376372563` · content root `…`
> Derived from <https://en.wikipedia.org/w/index.php?oldid=1376372563> · Licensed CC BY-SA 4.0

Code golf is a type of recreational computer programming competition in which participants strive to achieve the shortest possible source code that solves a certain problem. Code golf challenges and tournaments may also be named with the programming language used (for example, Perl golf).

Code golf is a type of recreational computer programming competition in which participants strive to achieve the shortest possible source code that solves a certain problem. Code golf challenges and tournaments may also be named with the programming language used (for example, Perl golf).
