Skip to main content

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.

29 votes
27 answers
5k views

a XAND b a AND b, but not at the same time. I've always found the idea of an XAND gate amusing. Many would claim such a gate can not exist, but I suspect they're just not trying hard enough. ...
Albert Renshaw's user avatar
1 vote
2 answers
191 views

Many polyglots fill in the blanks between languages by either making code that is ignored in one language or loading code dynamically. This time, let's write a polyglot that works without that. This ...
user31248584's user avatar
33 votes
8 answers
4k views

Edit: Please note there is currently a vote to close this coding challenge due to a complaint that it may be technically violating a decade old rule for this site. There is currently a discussion in ...
Albert Renshaw's user avatar
20 votes
12 answers
3k views

The hashtag #メキシカンハットチャレンジ* appeared on my X/twitter feed today. Japanese hackers have been drawing the "Mexican Hat Potential" 3D curve on all sorts of ...
roblogic's user avatar
  • 4,629
1 vote
2 answers
351 views

The well known cat command simply copies its stdin directly to stdout unchanged. But there are plenty of other commandline tools that exist... What other commands ...
CarmenCarmen's user avatar
-1 votes
1 answer
187 views

Description a typeracer is an apps where user could type and evaluate their typing speed and accuracy. Criteria User could type "A quick brown fox jumps over the lazy dog." A visual ...
Candra R's user avatar
19 votes
3 answers
977 views

Plot contrivance You wake up to find that something has gone horribly wrong! Your time machine has malfunctioned and you are lost sometime between June 2022 and October 1991. You check the computer ...
Wheat Wizard's user avatar
  • 103k
19 votes
52 answers
4k views

The task is to provide code that evaluates to 0.5 numerically, i.e. the output must be recognized by your chosen language as a numeric value (Number, float, double, etc), not as a string. The catch, ...
Eliseo D'Annunzio's user avatar
9 votes
5 answers
640 views

This is a challenge I thought of recently which I think is not hard but allows for a wide range of possible solutions. Seems like a perfect fit for the creativity of PPCG users :) Your Task Define two ...
Quelklef's user avatar
  • 727
-12 votes
5 answers
694 views

You have to print out your username, by only using the characters in your username. Standard loopholes are forbidden This is not code-golf, so shortest does not win Don't modify your username please ...
avarice's user avatar
  • 12.5k
18 votes
28 answers
2k views

A sign sequence is an infinite sequence consisting entirely of \$1\$ and \$-1\$. These can be constructed a number of ways, for example: Alternating signs: \$1, -1, 1, -1, ...\$ \$-1\$ for primes, \$...
caird coinheringaahing's user avatar
0 votes
1 answer
181 views

If you are given an array of numbers between 1 and 100 and an integer n, you must remove any instances of an item that appear greater than ...
applemonkey496's user avatar
35 votes
4 answers
3k views

In math a magic square is an N×N grid of numbers from 1 to N2 such that every row, column, and diagonal sums to the same total. For example here's a 3×3 magic square: In this challenge we'...
Calvin's Hobbies's user avatar
1 vote
0 answers
321 views

As you may or may not know, Valentine's day is getting close. So today, my task for you is: Write a heart-shaped quine Rules: Code should look like an identifyable heart shape, i.e. Has two round ...
Martmists's user avatar
  • 447
3 votes
6 answers
493 views

I don't know if something like this exists already (and I'm not finding the right key words) but if not, it felt like it could be an interesting coding puzzle. The challenge is, to take an ...
Joe Healey's user avatar

15 30 50 per page
1
2 3 4 5
28