Linked Questions

151 votes
354 answers
49k views

The Fibonacci sequence is a sequence of numbers, where every number in the sequence is the sum of the two numbers preceding it. The first two numbers in the sequence are both 1. Here are the first ...
C. K. Young's user avatar
  • 4,998
170 votes
171 answers
59k views

We all know that if you google the word "google" it will break the internet. Your task is to create a function that accepts one string and returns its length, in the fewest possible Unicode ...
rybo111's user avatar
  • 4,565
125 votes
113 answers
20k views

Your challenge is to make an infinite loading screen, that looks like this: Or, to be more specific: Take no input. Output Loading..., with a trailing space, but no ...
FlipTack's user avatar
  • 14.7k
173 votes
73 answers
26k views

Challenge: Your task is to write as many programs / functions / snippets as you can, where each one outputs / prints / returns an integer. The first program must output the integer ...
Stewie Griffin's user avatar
105 votes
45 answers
14k views

The aim of this post is to gather all the golfing tips that can be easily applied to <all languages> rather than a specific one. Only post answers that its ...
ajax333221's user avatar
  • 3,694
101 votes
62 answers
15k views

Once I wrote a JavaScript program that would take as input a string and a character and would remove all characters except for the first one and the character given as input, one by one. For example, ...
Esolanging Fruit's user avatar
45 votes
82 answers
6k views

You are to write a program which generates random integers between \$0\$ and \$99\$ inclusive, outputting each integer in turn, until \$0\$ is generated. You may choose which single-order random ...
caird coinheringaahing's user avatar
75 votes
45 answers
9k views

Thanks to @KritixiLithos for helping me out with this challenge! V is a programming language that I wrote so that I could use and extend vim for code-golf challenges. The very first commit was on ...
DJMcMayhem's user avatar
  • 60.1k
57 votes
51 answers
3k views

Challenge: Given a string s on the characters a-z, A-<...
Yodle's user avatar
  • 2,448
48 votes
47 answers
5k views

Write a program that takes in (via STDIN/command line) a non-negative integer N. When N is 0, your program should print O (that's capital Oh, not zero). When N is 1,...
Calvin's Hobbies's user avatar
31 votes
62 answers
6k views

The Challenge In as few characters as possible, find the value of iⁿ, given n, a positive integer greater than 0. This should be outputted as a String. For those that don't know, i is defined such ...
Kezz's user avatar
  • 445
29 votes
65 answers
6k views

Background Hello is a language "written" by Anne Veling, which errors if the program does not contain only h, and will print ...
the-cobalt's user avatar
50 votes
38 answers
11k views

Anyone remember Boaty? You could totally make any old word, right? Write a function to turn a string into Somethingy McSomethingface. It should accept one string as input. Ignore the case of the ...
AJFaraday's user avatar
  • 11.8k
38 votes
51 answers
6k views

Monday numbers, as defined by Gamow in this question over on Puzzling, are positive integers N with the following three properties: The decimal representation of N does not contain the digit 0 The ...
AdmBorkBork's user avatar
  • 43.7k
49 votes
35 answers
3k views

Challenge Given a non-empty array of integers, e.g.: [5, 2, 7, 6, 4, 1, 3] First sever it into arrays where no item is larger than the previous (i.e. non-...
ETHproductions's user avatar

15 30 50 per page
1
2 3 4 5