Newest Questions
14,531 questions
6
votes
11
answers
1k
views
My vinyls have all caught colds!
I'm a big music fan, and I'm quite proud of my collection, but it seems some kind of sickness is going around the house, and all my vinyls have gotten quite ill. Can you help me find which ones have ...
2
votes
1
answer
152
views
BOCU-1 encoder (a Unicode encoding)
Implement an encoder of BOCU-1.
BOCU-1, where "BOCU" stands for "Binary-Ordered Compression for Unicode", is a compression scheme and an encoding for Unicode. It was developed by ...
7
votes
5
answers
387
views
Get index of aperiodic number
related
Update: 2026-03-29
sequence applies.
Task
sequence problem with following sequence:
Given an unsigned integer,
if it is in A328594 output its index; or
if it is in A121016 do step 1 for what ...
-2
votes
0
answers
88
views
solve Quantified boolen formula in O(n) time [closed]
As input you receive a Quantified boolean formula, Where the only boolean operation is implies >XY, and the only quantifier is Forall value.Predicate ...
13
votes
10
answers
2k
views
41 years of confusing Windows version naming
Given a year between 1985 and 2025 (inclusive), write a function (or a whole program) that outputs the name of the latest major "Home" version of Windows available to the public by the end ...
19
votes
3
answers
950
views
Generate a large number using + and ×
Let's play a game using only \$ + \$, \$ \times \$, and \$ = \$ operations!
Start with a single variable initialized as \$ x_0 = 1 \$. A program is a sequence of assignments using only the following ...
4
votes
4
answers
202
views
Sort Key for Japanese Wikipedia Article
Introduction
Unlike English, Japanese language has massive amount of letters, therefore Japanese Wikipedians have to give how the article's title has to be read in hiragana and make it sortable with ...
15
votes
4
answers
4k
views
Help me "prove" π = 4
There is a flawed pictorial proof that purports to show that \$π\$, the ratio of a circle's circumference to its diameter, is \$4\$, not the \$3.1416\$ we think it is.
The "proof" goes as ...
25
votes
20
answers
1k
views
Slap sort counter
Slap sort is such a sorting strategy:
Repeatedly move to end the first element which is larger than the following element, until sorted(aka. no such element exist).
This is easily coded when elements ...
11
votes
8
answers
1k
views
Count valid programs in ()
Consider such a language using only ( and ):
...
13
votes
3
answers
973
views
Add two rational numbers... esoterically
Objective
Build a binary operator \$\star : \mathbb{Z} \times \mathbb{Z} \to \mathbb{Z}\$ such that, there exists a bijection \$i : \mathbb{Z} \to \mathbb{Q}\$ such that, for every integer \$M\$ and \$...
12
votes
9
answers
773
views
List of Kangxi radicals (康熙部首)
Chinese characters (and by extension, kanji in Japanese and hanja in Korean) are usually indexed in dictionaries by radicals (the components that are prominently featured in Chinese characters and ...
15
votes
18
answers
825
views
Implement Vyxal 3's extract-truthy-head
As of its latest pre-release, Vyxal 3 has an element that:
Given a function and a list,
returns the first element in the list that the function returns a truthy value for,
as well as the list with ...
4
votes
1
answer
301
views
Find the number in the Champernowne constant 2.0
Goal: find the decimal position of the first occurrence of a value within the Champernowne constant (0.1234567891011121314...).
This has already been done before, but the solutions were just naive str....
12
votes
2
answers
789
views
Simulate gravity
Given the effort to coolness ratio, I'm pretty surprised there wasn't a question on here for this already. The task for this question is to simulate n-body gravity!
Simple? I thought the n-body ...