Linked Questions

41 votes
41 answers
6k views

Given a character, output (to the screen) the entire qwerty keyboard layout (with spaces and newlines) that follows the character. The examples make it clear. Input 1 ...
ghosts_in_the_code's user avatar
6 votes
72 answers
10k views

You have to create a code which prints :) a random number of times from 1 to 255 inclusive. Your output may not contain any whitespace. Your score : The ...
Mukul Kumar's user avatar
  • 2,725
31 votes
44 answers
4k views

Introduction As ToonAlfrink says: "Me thinks there aren't enough easy questions on here that beginners can attempt!". So the task is very simple. Given a string, output a truthy or falsy value ...
Adnan's user avatar
  • 44.7k
24 votes
52 answers
2k views

Given two arrays of non-negative integers \$A = [A_1,A_2,\ldots,A_n]\$ and \$R = [R_1,R_2,\ldots,R_n]\$ which are equal in length, return an array which has the element \$A_1\$ repeated \$R_1\$ times, ...
97.100.97.109's user avatar
46 votes
24 answers
4k views

Background Summer is well over in the Northern Hemisphere, and a lot of us miss the sun, the beaches, the waves of the ocean... This challenge aims at cheering them up by reminding them of the sea. ...
Dada's user avatar
  • 8,533
19 votes
57 answers
5k views

Specifications Given a number n, output an ASCII "meme arrow" (greater-than symbol, >) of size ...
anna328p's user avatar
  • 6,482
29 votes
33 answers
3k views

A matrix is antisymmetric, or skew-symmetric, if its transpose equals its negative. The transpose of a matrix can be obtained by reflecting its elements across the main diagonal. Examples of ...
golf69's user avatar
  • 2,059
39 votes
27 answers
3k views

We all know the age-old debate - should strings be length-prefixed or should they be null-terminated? Well, you've run into a blob of binary data and apparently whoever made it decided that the best ...
Sara J's user avatar
  • 3,855
60 votes
12 answers
15k views

The function TREE(k) gives the length of the longest sequence of trees T1, T2, ... where each vertex is labelled with one of k colours, the tree Ti has at most i vertices, and no tree is a minor of ...
Christopher King's user avatar
23 votes
36 answers
2k views

"Fit Numbers" Sam has a "brilliant" idea for compression! Can you help? Here is a rundown of Sam's compression scheme. First take in a base 10 representation of any natural number strictly smaller ...
Rohan Jhunjhunwala's user avatar
65 votes
15 answers
12k views

It is simple. I cannot stand when people use spaces when naming files. It sometimes wrecks console commands and makes the output of ls ugly. The challenge is to write a program (only ascii characters)...
M.Herzkamp's user avatar
  • 1,307
4 votes
37 answers
4k views

The mission is to implement a cat-like program (copy all STDIN to STDOUT). Rules: You may only use standard libraries Indentation must be either two spaces or a ...
Kokizzu's user avatar
  • 1,549
18 votes
23 answers
3k views

Here is an easy-intermediate challenge for anyone interested! What is that? A thing me and brother do a bit too often is this: One of us has a problem and asks the other to explain how to do certain ...
SunnyMoon's user avatar
  • 2,709
28 votes
14 answers
3k views

In this cops-and-robbers challenge, robbers must crack cop answers by finding out which languages the cops used. This is the Cops thread. For the Robbers' challenge, see here Cops, you are to write a ...
caird coinheringaahing's user avatar
25 votes
23 answers
4k views

In CSS, colours can be specified by a "hex triplet" - a three byte (six digit) hexadecimal number where each byte represents the red, green, or blue components of the colour. For instance, ...
wrymug's user avatar
  • 820

15 30 50 per page