After this question, I became interested in looking for various relationships in post popularity. While reading through the HNQ list, I noticed that some questions are capitalized in title case, and others written like sentences. So, I used a SEDE query to get a table of question data, and starte...
Smallest Fibonacci Multiples
I'm not sure whether this is a duplicate. I looked around, but I couldn't find a dupe, but let me know if you find something.
Background (Not necessary for the problem)
A standard number theory result using the pigeonhole principle is the fact that given any natu...
Write a function or program which takes as input a set of distinct, non-negative integers \$\{x_1, \ldots, x_n\}\$ and outputs the smallest gap between any two values in the set, i.e. \$\min_{i\neq j}|x_i-x_j|\$.
Scoring
This is not code golf. Your score is the smallest gap of the set of code p...
Once upon a time I wanted to order custom tokens for a board game. They say they can do it, and then they present me their price list. I was confused because they charge per inch of head movement, and I have no idea how much will my tokens cost.
INPUT: a 2d grid:
|,-,\,/ are straight cuts. Eac...
Hey everyone! I'm working on this challenge in the Sandbox, and I'm trying to figure out how to modify it so that the answers are not derivatives of other Fibonacci prompts. Any suggestions are welcome.
Hey, those of you with significant others (@AlexA., @ChrisJester-Young, @Dennis, uhhh... @Zgarb? @mınxomaτ? @othersWhoApply), my fiancée suggested to me a few months ago that I should write a blog post on something like "what you should know if you're going to marry a programmer". I've been mulling over the idea for some time, and I'm gonna start soliciting input from other programmers. So, if you were to write such a blog post, what would you include?
Pretty sure I've heard it other times before as well
Union of Two Polygons
Given two intersecting polygons as input, output a third polygon that is the union of the two input polygons, that is to say, the perimeter that encloses all points present in at least one of the two input polygons.
(TODO: visuals)
Notes and Rules
Input will be two list...
The code:
function L(){N=null;E=[N,N];t=this;h=E;t.u=i=>h=[i,h];
t.o=_=>h==E?N:h[+!(h=h[1])];t.e=(i,l)=>h=(l||h)==E?[i,
E]:[(l||h)[0],t.e(i,(l||h)[1])];t.s=_=>{o="";while(i=t.o())
{o+=i+","}return o}}
For my response to this (old) question: https://codegolf.stackexchange.com/a/196783/72421 (m...
Sort By the New Alphabet
The order of the alphabet is really quite arbitrary. I propose a new ordering of the alphabet, ordered so that adjacent letters (in capital form) are similar in shape. Here is the order:
JUOQGCDPRBEFTILVYXKHAMWNZS
Of course, this makes a lot of previously written cod...