CARVIEW |
Select Language
HTTP/2 200
date: Tue, 29 Jul 2025 06:25:45 GMT
content-type: text/html; charset=utf-8
cf-ray: 966a8a6aaebf0bc9-BLR
cf-cache-status: DYNAMIC
cache-control: private
set-cookie: prov=69c0ca75-e225-4c38-a0f6-073c130ef0bd; expires=Wed, 29 Jul 2026 06:25:44 GMT; domain=.stackexchange.com; path=/; secure; httponly
strict-transport-security: max-age=31536000; includeSubDomains
vary: Accept-Encoding
content-security-policy: upgrade-insecure-requests; frame-ancestors 'self' https://stackexchange.com
x-clacks-overhead: GNU Terry Pratchett
x-frame-options: SAMEORIGIN
x-request-guid: 153e36d4-0cbf-4260-8665-48eae4107b5c
x-worker-origin-response-time: 1019000000
x-dns-prefetch-control: off
set-cookie: prov=69c0ca75-e225-4c38-a0f6-073c130ef0bd; Path=/; HttpOnly; Domain=stackexchange.com
set-cookie: __cf_bm=Yoi9Wk0X8t7Owyeum823cXo6XVtcQyMH.YqNgCjUXRs-1753770345-1.0.1.1-AHl3VL77fMXgEBApdspzfeNFT3AtMCMiYNVHetdPzEwr67yoW2xEjG8N7pQLApjs.IpkcwfFTYw1mDZjjz4L3uyEZeSBKO_6uDPfEQvqG34; path=/; expires=Tue, 29-Jul-25 06:55:45 GMT; domain=.stackexchange.com; HttpOnly; Secure; SameSite=None
set-cookie: _cfuvid=WpZM8YVVbJcLZAECes8dmHSHwd44OeZP5iawOZV.trU-1753770345168-0.0.1.1-604800000; path=/; domain=.stackexchange.com; HttpOnly; Secure; SameSite=None
server: cloudflare
content-encoding: gzip
Newest 'decision-problem' Questions - Code Golf Stack Exchange
Skip to main content
Stack Exchange Network
Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Visit Stack ExchangeTeams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Learn more about TeamsQuestions tagged [decision-problem]
For challenges which involve deciding whether or not the input meets certain criteria, and outputting some data, representing that decision.
796 questions
- Bountied 1
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
23
votes
15
answers
2k
views
Write two very different programs with the same characters
Your task is to write two programs/functions, in the same language.
Program 1: Verify that two inputs are anagrams of each other.
Program 2: Verify that two inputs differ from each other at every ...
11
votes
3
answers
2k
views
The shortest NP-complete problem
Find an NP-complete problem that covers all finite ASCII strings, and present a solver for the problem in the programming language of your choice.
By the definition, if there is a finite ASCII string ...
27
votes
40
answers
3k
views
+100
Does your source code contain this character?
Given a character as input, determine if your source code contains that character or not.
Shortest code wins. Though, I'd like to see some "normal" languages too.
UPDATE: the question ...
7
votes
9
answers
499
views
The Array Walker (part 2)
The Array Walker (part 2)
Input: A non-empty array of integers (without nesting1). This can have negative values!
Output: A boolean value2 indicating whether we can reach the end of the array when ...
7
votes
22
answers
796
views
Can we escape from array?
Can we escape from the array?
Input: A non-empty array of non-negative integers (without nesting1).
Output: A boolean value2 indicating whether we can reach the end of the array when starting from the ...
9
votes
3
answers
593
views
Intersection check in the fewest operations
Challenge
Given two line segments, your goal is to write a function which determines if they intersect using only the operations given below:
Multiplication: x*y
...
3
votes
2
answers
189
views
Winding a Queue
You will be given a matrix. It contains a ride exit (with a direction), some path, as well as some obstacles. Your goal is to build the longest possible queue line in that space, which connects the ...
13
votes
7
answers
863
views
Traverse the list
Update 2025-06-04: Thanks for the submissions everyone! It seems like a lot of the solutions are quite slow / timeout for the 100 length test case, so I don't think any will be able to do the 10k. ...
16
votes
12
answers
4k
views
A broken clock is right n times a day
You will be provided with a string containing a digital clock. You must determine how many times per day that clock could be correct. You can ignore daylight savings time. You do not know if the clock ...
7
votes
4
answers
667
views
Ray's intersecting lines
Ray has created some ASCII lines which he is using to draw with on a canvas.
His canvas can be any width and height between 1 to 100 characters (the borders do not count towards these dimensions). He ...
13
votes
17
answers
2k
views
Is it a product of 4 unique primes (A046386)?
A046386 is the sequence of all natural numbers that are the product of exactly 4 distinct primes.
Write the shortest program, function, or code snippet, that, when given a natural number, outputs ...
8
votes
2
answers
186
views
Primitive words
Given a list of values, 1, 2, -1, or -2, we will allow the following simple moves:
Remove adjacent values which are negatives of each other. e.g. ...
15
votes
6
answers
501
views
Block covered cycles
Given a cycle of non-zero numbers we say a "block" is a substring appearing immediately after \$n\$ and immediately before \$-n\$, which contains neither \$n\$ nor \$-n\$.
Here is an example ...
12
votes
4
answers
1k
views
Who's that evolution?
Given two first generation pokemon names as input, write a function (or a whole program) that outputs a Truthy value if the second one is an evolution of the first one (and a Falsy value otherwise).
...
12
votes
14
answers
1k
views
Decide Equality of Closed Surfaces
Objective
Given two closed surfaces (a.k.a. closed 2-manifolds), decide whether they're homeomorphic.
Introduction
In lay terms, a closed surface is a finite-sized shape that resembles a flat plane ...
Welcome to Code Golf and Coding Challenges Stack Exchange! This is a site for recreational programming competitions, not general programming questions. Challenges must have an objective scoring criterion, and it is highly recommended to first post proposed challenges in the Sandbox.
- The Overflow Blog
-
-
- Featured on Meta
-
-
Related Tags
code-golf × 772
string × 147
number × 97
math × 92
array × 70
grid × 47
number-theory × 43
integer × 39
primes × 36
graph-theory × 33
sequence × 29
game × 29
matrix × 29
ascii-art × 25
geometry × 21
chess × 20
parsing × 19
restricted-source × 18
arithmetic × 18
code-challenge × 16
subsequence × 15
binary × 14
combinatorics × 12
palindrome × 12
card-games × 12
more related tags
Hot Network Questions
- Self explanatory
- How does one justify the rationality of buying insurance?
- Seven-dimensional cross product
- What causes or how can I determine what causes this runaway argument when trying to emulate ltproperties in memoize?
- suppress space in ^{-1}
- Are all Universities this internally cut-throat?
- Finite projective plane with trivial automorphism group
- What is this under cabinet lamp style? Are they easily convertible to LED?
- How to find all PDAs before closing a program
- Does Genesis account allow for the possibility of intelligent man like beings existing before Adam and Eve?
- EU/USA trade deal - is it really a done deal?
- How would the wind patterns of a Disc-like-world work?
- How to speed up this NIntegrate which is calculated many times?
- How to identify process' serving 127.0.0.53:53 and 127.0.0.54:53?
- Unable to mount ISO via iDRAC remoteimage2 despite successful ping and direct download
- Can I pull two circuits through conduit from a subpanel to another structure?
- Efficient extraction of first/only key in a dictionary
- Civilian airplanes with inside fuselage jet engines
- Why not use the "age" tool for encrypted backups?
- Are there any (around) 14 hidden characters in path and/or filename in File Explorer?
- What happens if a player throws a barrel of caltrops at a wall?
- Leibniz's monadology and free will
- Why does accessing my public IP via HTTPS on LAN show my modem's interface?
- QGIS is plot rotated