Quantcast
Channel: Active questions tagged code-challenge - Code Golf Stack Exchange
Browsing index pages (203 articles)
↧

Fewest (distinct) characters for Turing Completeness

Summary:For any given language, what is the smallest amount of unique characters for your language to be Turing-Complete?Challenge:For any language of your choice, find the smallest subset of...

View Article


We're much closer than you think

Martin Ender's 2D programming language Alice has two different modes depending on what orientation the IP has: orthogonal (Cardinal mode) or diagonal (Ordinal mode). Commands in Alice change their...

View Article


50 digits of π in HQ0-9+-INCOMPUTABLE?

BackgroundHQ0-9+-INCOMPUTABLE?! is a half-joke programming language introduced in Internet Problem Solving Contest 2011, Problem H.HQ9+ is an esoteric programming language specialized for certaintasks....

View Article

Image may be NSFW.
Clik here to view.

Gluing tetrahedra together

(This challenge exists to extend sequence A276272 in the On-Line Encyclopedia of Integer Sequences, and perhaps create a new OEIS sequence1.)This is a code-challenge, which will have you write code to...

View Article

Image may be NSFW.
Clik here to view.

Embed a QR code into an image

QR codes are useful, but ugly. They're artistically visually noisy and illegible to humans. That's why I was fascinated to run across this image by reddit user antarctican:This is a drawing of the...

View Article


Eww, those bytes are gross

Write a program or function that, when given a string, filters out as many distinct bytes as it can and returns the cleaned string. However, since your program hates them, none of these bytes can be...

View Article

Transposed, primes, oh my!

The task is simple: your program reads an integer as an input, and prints whether it is a prime or not. You can print "yes/no", "true/false" or anything what unambiguously identifies the result.The...

View Article

Image may be NSFW.
Clik here to view.

Paint Starry Night, objectively, in 1kB of code

Note: a 1000 point bounty is still available for this challenge, which I will create and award if anyone takes the top score without using built-in compression.Below is a 386x320 png representation of...

View Article


Image may be NSFW.
Clik here to view.

Counting Grains of Rice

Consider these 10 images of various amounts of uncooked grains of white rice.THESE ARE ONLY THUMBNAILS. Click an image to view it at full size.A:B:C:D:E:F:G:H:I:J:Grain Counts:A: 3, B: 5, C: 12, D: 25,...

View Article


Source permutation

A permutation of a set \$S = \{s_1, s_2, \dotsc, s_n\}\$ is a bijective function \$\pi: S \to S\$. For example, if \$S = \{1,2,3,4\}\$ then the function \$\pi: x \mapsto 1 + (x + 1 \mod 4)\$ is a...

View Article

Image may be NSFW.
Clik here to view.

Without using numbers, get the highest salary you can. But don't exaggerate!

As I'm applying for some jobs whose job advert doesn't state the salary, I imagined a particularly evil interviewer that would give the candidate the possibility to decide their own salary ...by...

View Article

List Sophie Germain primes

The QuestionA Sophie Germain prime is a prime \$p\$ such that \$2p+1\$ is prime as well. For example, 11 is a Sophie Germain prime because 23 is prime as well. Write the shortest program to calculate...

View Article

Hunt the Wumpus

When I was a lad, kids would wander into computer stores and play Hunt the Wumpus until the staff kicked us out. It was a simple game, programmable on the home computers of the mid-1970s, machines so...

View Article


Golf Numerical Representations in Compressed Barbrack

Aside: there are actually multiple ways I thought of implementing a Barbrack-golfing challenge, but this one seemed to have a good balance in testingsitting still and thinking hard about it.The...

View Article

Largest Number Printable

Your goal is to write a program that prints a number. The bigger the number, the more points you'll get. But be careful! Code length is both limited and heavily weighted in the scoring function. Your...

View Article


What is the smallest positive base 10 integer that can be printed by a...

I think the question as above is clear, but just in case:Write a full program (not just a function) which prints a positive base 10 integer, optionally followed by a single newline.Qualifying programs...

View Article

"As we travel the universe..."

You'll be given the name of one of the 20 biggest objects in the Solar System. Your task is to return an approximation of its radius, expressed in kilometers.This is a code-challenge where your score...

View Article


Cops: The Hidden OEIS Substring

This is a Cops and Robbers challenge. This is the cop's thread. The robber's thread is here.As a cop, you must pick any sequence from the OEIS, and write a program p that prints the first integer from...

View Article

Avoid repeating letters between five simple programs

Your challenge is to write 5 different full programs for the 5 following tasks:Print Hello, World!.Given an input on STDIN, output the factorial (you can assume that the input is an integer ≥ 0).Given...

View Article

Bomby Popcorn - Challenge (Ended)

Note:Challenge ended.The winner for accuracy is: Jonathan Allan for answer: ȧ÷¥/€M)FÆṁ.And the winner for one-second intervals is: Tegah D Oweh for answer: ±/+≡(±⧈-≡(↥0⌊/÷-1_0)).All other people with...

View Article
Browsing index pages (203 articles)


Latest Images