@HelkaHomba I have no idea. I used to try and predict how many votes my challenges would get, but I got 46 on a challenge I thought would get maybe 21, and 21 on a challenge I thought would get to 35
Gauss to Eisenstein
mathabstract-algebragridnumbercomplex-numbers
Given a Gaussian number A+B*i where A,B are integers and i = exp(2*pi*i/4) is the imaginary unit, return the closest Eisenstein integer K+L*ω where K,L are integers and ω = exp(2*pi*i/3) = 1/2(-1+i√3).
Background
It is probably...
Background
The Fibonacci sequence is defined as
f(1) = 1
f(2) = 1
f(n) = f(n-1) + f(n-2)
The Fibonorial, similar to the factorial, is the product of the first n Fibonacci numbers.
g(n) = f(1) * f(2) * ... * f(n-1) * f(n)
The Fibonomial coefficient, similar to the binomial coefficient is de...
My PPCG holiday is over :D
Intro
Fractional time is the year (2016) plus the value (minute of year) / number of minutes in the year.
Example calculation
Let's say we want to convert the time: 17:34 3rd March 2013 to fractional time. Firstly, you find how many minutes were in 2013: 525600 minu...
The Challenge
Given either a string or a multiline string, output the text in the shape of a square.
You can assume that the text will always fit in a square, and that it will never be an empty string.
Example
Input:
Hi, world
Output:
Hi,
wo
rld
Test Cases
Input:
Hi, world! Hello
Output...
100 Day Countdown
It is common to start countdowns 100 days prior to an event, probably because of our base 10 system. Examples of this can be found everywhere:
100 days until your birthday
100 days until the wedding
100 days until the election
100 days until our graduation
100 days until her ...
Frank William Abagnale, Jr. (/ˈæbəɡneɪl/; born April 27, 1948) is an American security consultant known for his history as a former confidence trickster, check forger, and impostor between the ages of 15 and 21. He became one of the most famous impostors ever, claiming to have assumed no fewer than eight identities, including an airline pilot, a physician, a U.S. Bureau of Prisons agent, and a lawyer. He escaped from police custody twice (once from a taxiing airliner and once from a U.S. federal penitentiary), before he was 21 years old. He served less than five years in prison before starting...
@Dennis btw, if/when you get enough to upgrade plan, maybe it's a good idea to use the extra space to cache results, at least until a language is updated
There was a torrent for WatchDogs (I think), when it came out that took like double the normal time because it had some weird bitcoin miner set up that everyone was running by downloading the torrent
A service I've been using for years just decided to change the display language based on my IP, even though I've selected English as preferred language both in my profile and my web browser. Great!
Input ∩ Source
The challenge is to create a program/function that prints the intersection of its own source code and a given string input. This is code golf and to be more precise:
Let I be the input set
{"a","b","c"}
Let S be the source code set
{"b","f"}
Then the intersection is what ...
Vim, 59 bytes/keystrokes
:%s/./&\r/g
dd:let @q=float2nr(sqrt(line('.')))."gJ@q"
gg@q
This is almost definitely one of the longest vim answers I have ever posted.