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.

Filter by
Sorted by
Tagged with
10 votes
2 answers
375 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,105
1 vote
2 answers
194 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
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
26 votes
53 answers
3k views

Output your numeric user ID. Do not use 0-9 in your code. Code golf.
Steve Bennett's user avatar
15 votes
6 answers
940 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
-5 votes
7 answers
490 views

It's 2025! Write a function/program that outputs this number in words. There are two twists: You can write it out in (almost) any human language (including English). None of the characters in your ...
Steve Bennett's user avatar
-7 votes
2 answers
387 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
  • 323
5 votes
9 answers
3k views

"nimi ale lon toki pona" is a song by YouTuber jan Misali which lists 137 common words in the constructed language Toki Pona. This challenge is not a duplicate of "How high can you ...
3-1-4-One-Five's user avatar
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
7 votes
1 answer
404 views

Your task is to convert non-empty strings - between strings using the 26 letters, and programs, which are strings of bytes, where each byte has 256 possible values. You should use the same codepage ...
Command Master's user avatar
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,105
6 votes
2 answers
393 views

What is the shortest selector (by character count) to select ALL html elements on a web page, without using asterisk (*)? Some examples are the following: ...
user3163495's user avatar
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
8 votes
8 answers
826 views

This is the robbers' thread. See the cops' 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
12 votes
9 answers
952 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