Skip to main content

Questions tagged [restricted-source]

Imposes a restriction on the source code used to solve the challenge, for example, having no numbers in the source code.

10 votes
2 answers
369 views

Task: Your task is make a program to check if there exists integers \$a \ge 2, b \ge 2\$ such that \$a^b=i\$ where \$i\$ is the input integer at least 2. The catch is that your program must return a ...
Fmbalbuena's user avatar
  • 5,085
23 votes
15 answers
3k views

Your task is to write two programs/functions, in the same language. Program 1: Verify that two inputs are anagrams of each other. Program 2: Verify that two inputs differ from each other at every ...
Steve Bennett's user avatar
15 votes
6 answers
936 views

Oh dear. An overzealous cleaner has separated out the punctuation in your source code. Write a program or function that, when passed its source code separated into punctuation and non-punctuation (but ...
Steve Bennett's user avatar
-7 votes
2 answers
386 views

Side note If this question contains something copied from some other question. This is definitely not my fault since i didn't knew the question existed Back to the question The challenge is simple. ...
Gleb's user avatar
  • 353
0 votes
17 answers
1k views

Write code that outputs the smallest integer \$n > 5\$ such that \$\frac{\sqrt{\log_2{n}}}{(\log_2 {\log_2 n})^2} > 1\$. Your code may have at most one digit in its source code. You can use ...
Simd's user avatar
  • 3,167
5 votes
13 answers
2k views

This is an answer-chaining post, so in this challenge every answer (except the first answer) depends on the previous answer. The goal of this challenge is to output the restricted characters. Define \$...
Fmbalbuena's user avatar
  • 5,085
21 votes
8 answers
3k views

Background Numeric Mahjong is a hypothetical variation of Japanese Mahjong, played with nonnegative integers instead of Mahjong tiles. Given a list of nonnegative integers, it is a winning hand if it ...
Bubbler's user avatar
  • 79.3k
12 votes
9 answers
945 views

This is the cops' thread. See the robbers' thread here. In this cops and robbers challenge, the cops will be tasked with writing an algorithm that computes some function of their choice, while the ...
dingledooper's user avatar
  • 23.4k

15 30 50 per page
1
2 3 4 5
24