Linked Questions

45 votes
142 answers
13k views

This is the robber's thread of a cops-and-robbers challenge. You can view the cop's thread here A pretty common beginner style question is to print some string, but, there's a catch!, you need to do ...
Wheat Wizard's user avatar
  • 103k
46 votes
53 answers
8k views

Short and sweet description of the challenge: Based off ETAOIN SHRDLU, your challenge is to write the shortest program or function in any language that outputs the 26 letters of the English alphabet ...
Abraham's user avatar
  • 1,063
31 votes
65 answers
4k views

Your task is to create a program that prints "Greetings, Planet!" exactly to the console. Seems simple enough, right? Well, here's the trick. The code must be a palindrome, meaning it reads from right ...
user avatar
30 votes
31 answers
2k views

Introduction Let's take the number 180. This is an interesting number because the sum of digits of this number is equal to: ...
Adnan's user avatar
  • 44.7k
19 votes
38 answers
4k views

Definition (from Wikipedia) A Pythagorean triple consists of three positive integers a, b, and c, such that a² + b² = c². The typical example of a Pythagorean triple is (3,4,5): 3² + 4² = 9 + 16 = 25 ...
G B's user avatar
  • 23.4k
26 votes
20 answers
7k views

I was messing around with Pyth's url request feature, and noticed that google always gave a response with a slightly different length for me, usually ~10500 ...
Maltysen's user avatar
  • 25.8k
13 votes
34 answers
2k views

I have a string like this: helloworldandhellocodegolf I want to make every consonant after a vowel uppercase. Desired output: ...
U13-Forward's user avatar
  • 2,031
22 votes
22 answers
1k views

Given a ragged list of positive integers find the size of the largest list contained somewhere in it. For example: [1,[1,[8,2,[1,2],5,4,9]],2,[],3] Here the answer ...
Wheat Wizard's user avatar
  • 103k
17 votes
19 answers
3k views

Introduction: I have loads of different ciphers stored in a document I once compiled as a kid, I picked a few of the ones I thought were best suitable for challenges (not too trivial, and not too ...
Kevin Cruijssen's user avatar
20 votes
20 answers
2k views

Given a multidimensional, rectangular array of nonnegative integers, sort it at every depth (lexicographically), starting from the innermost. For example, with this array: ...
emanresu A's user avatar
  • 46.2k
20 votes
13 answers
3k views

Given some input array a = [a1, a2, ..., an] and a positive integer k, shuffle the input array ...
flawr's user avatar
  • 44.1k
14 votes
7 answers
2k views

You are a historian studying a long forgotten language. You have just discovered a clay tablet which seems to list all known words in the language, in alphabetical order. Your task is to find this ...
thejonymyster's user avatar
9 votes
5 answers
541 views

The Najdorf Variation of the Sicilian Defence is an opening often played at the highest level of chess. It is named after GM Miguel Najdorf and is known for being extremely sharp and theory heavy. ...
EnderShadow8's user avatar
  • 1,459