The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [popularity-contest]

A popularity-contest is a competition where the answer with the highest vote tally (upvotes minus downvotes) wins. As these are frequently closed, read the tag info and post your challenge to the sandbox first.

Filter by
Sorted by
Tagged with
1
vote
1answer
204 views

Predictable unpredictability [closed]

Ever programmer knows, that programs need to be predictable. Any code that is not predictable will do something undefined and therefore most likely crash or worse. But when I tried to figure out what ...
1
vote
1answer
284 views

Write a program that can draw 2-D shapes using ASCII or any other method [closed]

Rules (not too restrictive; flexible): 1.Must be able to draw shapes on command (e.g., I type in "square" and a square is drawn). Minimum completed shapes that can be drawn on command: Square, ...
1
vote
1answer
265 views

Computer Generated Olympic Theme Song [duplicate]

Try to regenerate the olympic theme song, "Bugler's Dream" using the programming language of your choice. The language/platform used must be able to emit the physical sound. Only playing the main ...
1
vote
0answers
220 views

Generate groups for in-class work [closed]

In a smallish class, some lectures are set aside for working in groups. The instructors don't want people to group themselves together with the same people every time; instead, they create the groups ...
1
vote
0answers
263 views

Write a program that outputs color graphics for the PSX system [closed]

This challenge calls for one to write a working program that is executable to the PSX microprocessor and platform. The program must execute on a PSX emulator. The best demonstration of graphics ...
0
votes
4answers
1k views

ASCII-art videogame edition [closed]

I thought it might be fun to throw this on here. Generate an ASCII-art for one of your favorite videogames. What you want to generate is up to you but it should meet 2 requirements. It should be ...
0
votes
4answers
1k views

Calculate the most digits of pi [closed]

There are a lot of challenges on this site regarding pi, but none that challenge you to calculate as many digits of pi as possible. As you all may know, pi in its decimal form goes on for infinity, ...
0
votes
15answers
568 views

Programming? No, it's Projamming [closed]

Hopefully not duplicate, but I did not find one. Challenge The challenge is to write full program, which compiles (without errors), but, when executed, will not finish the execution till the end, ...
0
votes
11answers
1k views

Implement map()…with bugs [closed]

EDIT: The behavior may be inconsistent. Also, associative arrays are permitted. Make a function that iterates through an indexed array, mapping a function of a single argument to each member of the ...
0
votes
8answers
755 views

Build a numerical library without using any primitive data type

The task is to build a numerical library for working with arbitrarily large integers that supports the following operations: addition subtraction multiplication division modulo operation However, ...
0
votes
3answers
239 views

Create a Question Asker! [closed]

Writing questions for programming puzzles is tiring and takes many minutes to do. This is where you come in. Your job is to write a program that randomly generates plausible-sounding (but not ...
0
votes
4answers
331 views

A boring version of yourself [duplicate]

A boring version of yourself Have you ever dreamed of a boring version of you which types the text you just typed ? No ? Because that's exactly what I'm challenging you to do ! The program needs to ...
0
votes
2answers
243 views

Mirror programs [closed]

Here is your task, should you choose to accept it: Output (through STDOUT, or whatever is most convenient) some n by m ASCII art ...
0
votes
7answers
1k views

Acrostic Poem - Programming [closed]

TASK: Make an acrostic poem in the lines. e.g. BATCH break attrib -h acrostic.txt type acrostic.txt cls help The output CAN also be an acrostic poem. ...
0
votes
4answers
322 views

The most pointless shell command you can concoct, based upon a often used shell command [closed]

Let's waste some time coming up with stupid ideas which are close cousins of good ideas. Your useless command doesn't have to fit any minimum or maximum length. Do, however, try to turn it into a one-...
0
votes
1answer
384 views

Program an Artistically Rich Comic Strip [closed]

The Challenge Program a comic strip. As artistically rich and detailed as you can possibly make it, so long as it complies with the following rules: the comic must be your own original work, not a ...
0
votes
1answer
253 views

Help me get a date for Homecoming [duplicate]

My school has its Homecoming dance next week, and there's someone in mind I want to ask. But I don't want to ask her the normal way. I want to send her a program that prints "Rachel, will you go to ...
0
votes
1answer
799 views

Six degrees of web separation [closed]

Six degrees of separation is the theory that everyone and everything is six or fewer steps away, by way of introduction, from any other person in the world. Your challenge here is to write a program ...
0
votes
0answers
156 views

Create a chain of programs in different languages [duplicate]

Create a program in any language, which outputs the source code for a program in another language, which outputs the source code for a program in another language, and so on. Please post at the top ...
-1
votes
1answer
343 views

Print the map of a country with the weirdest code possible [closed]

It can be in any language, plus the map must be in the output only not in the source code. This is my first question here, so please feel free to edit it. Also, there might be some rules about ...
-1
votes
3answers
747 views

1+2+3+4+…+n = -1/12? [duplicate]

Today, Numberphile posted this video where it's stated that 1+2+3+4+...+n = -1/12. While this isn't really new (several ways to prove that have been found, you can ...
-1
votes
3answers
652 views

Hide your hash function

So you are tasked with creating an open source password authentication system but you want to reveal as little about the implementation of the hash function as possible. Can you write a function that ...
-1
votes
1answer
215 views

Ponderous primality testing [closed]

One of my favorite algorithms was posted on Stack Overflow as an answer to What is the fastest way to generate prime number recursively?. In pseudocode: Nathan's algorithm ...
-1
votes
1answer
181 views

Calculate number of characters in code [closed]

The task is to find the number of characters in your source code up to the previous line. You may do some addition of two integers, or whatever that comes to mind. But at the end of your logic, you ...
-1
votes
4answers
1k views

Linkin Park Logo [closed]

Your goal is to draw the Linkin Park Logo in minimum bytes. Please add a title with the language and the number of bytes in your code.
-1
votes
1answer
163 views

Generate a Pallette for an Image [duplicate]

This is a successor to my previous Code Golf challenge, which may be found here. This time, you are trying to determine what the contents of colors.txt should be. Your task is to take from the input ...
-1
votes
2answers
296 views

Largest Denominator [closed]

The number 1 can be written as sum of fractions of the form 1/p (where p>1). There are different ways to write it. You will be given an integer k which denotes the number of fractions to be used to ...
-2
votes
4answers
2k views

Fibonacci Sequenze without using loops! [closed]

Here is one more "Challenge"! Today i had a meeting with a friend, and mostly we are a little bit crazy.. He bets, that it is not possible to create a Fibonacci Sequence without using loops. No ...
-2
votes
3answers
1k views

Generate the characters of “Hello, world!” mathematically, without strings or arrays, like generating the digits of π [duplicate]

The challenge is to come up with a mathematical way to generate each character of the exact string: Hello, world! (Capital letter, comma, exclamation mark.) But you can't use any strings, arrays, ...
-2
votes
2answers
1k views

Create an autocorrect program [closed]

People sometimes make spelling eorrors. A lto. Your challenge is to write a program that can take a string with certain spelling errors, such as the switching of I and E, and correct those mistakes. ...
-2
votes
1answer
172 views

Password Generator [duplicate]

Task: Make a program that generate a 24-digit password. Rule: None of the character can be repeated more than once Must include at least one upcase, one locase, one number, five special ...
-3
votes
2answers
180 views

compare string without conditional operator [duplicate]

Compare if three string variables with the same content, return true if they are or false if they are not without using ...
-3
votes
1answer
129 views

Listing links from pages — with error handling

In my previous question Debunking Stroustrup's debunking of the myth “C++ is for large, complicated, programs only”, a lot of people complained that comparison with Stroustrup's program isn't fair, ...
-4
votes
24answers
455 views

Generate 0 or 1 [closed]

Is this Q too easy to ask, or has it just never been thought of? Generate a random number, either 0 or 1 using a program You may use a pre-defined function. The code must be executable. (It can't ...
-4
votes
5answers
440 views

What time is it? [closed]

I really hate looking up to the top right of the screen to look at the time on OS X's clock widget; I'd much rather keep my eyes at least somewhere near my workspace to check the time. I also hate ...
-4
votes
2answers
443 views

Implement slow sorting algorithm [duplicate]

All good coders know some good sorting algorithms like quicksort or merge sort. There is also slow sorting algorithms, e.g. bubble sort and insertion sort. But those are such easy to implement and so,...
-4
votes
1answer
334 views

ULTIMATE CODEGOLF!!! (Codegolf a turing-complete system) [closed]

The goal: write a program that implements a turing-complete system. It could be cellular automata, a tag system, a turing machine, an interpreter for a language of your own design... the type of ...
-4
votes
3answers
394 views

write an undefined behavior [duplicate]

Header: this question has a very close duplicate, but the other question requires a difference between versions of the languages, instead of a difference between different implementation. this means ...
-4
votes
4answers
421 views

Help Me Count to Ten! [closed]

You will write a simple program that prints exactly 1 2 3 4 5 6 7 8 9 10 to STDOUT, Console, or your language's closest output method. No other visible output ...
-7
votes
4answers
484 views

The Miscalculator [closed]

Inspired by a post I saw on social media, your job is to create a miscalculator (aka "wrongulator"): a calculator which always outputs the wrong answer! Challenge Write a program that inputs a ...
-7
votes
2answers
227 views

Unique multiplication by ten [closed]

People, it's a popularity contest, you have to do somthing cool here. Think about cool ways of breaking the code in most languages, not about validating for everyting! Initially this challenge ...
-8
votes
10answers
649 views

Code to display a string without calling any methods or functions [closed]

Write a code to display "I Love You". Without using any built-in tools or functions like echo, System.out.println, ...
-9
votes
1answer
428 views

Self-debugging code [closed]

Your Task Write a program using ASCII characters. Five alphanumeric (0-9, A-Z, a-z) characters will be inserted at random into your program's source code. Your task is to detect and output these ...