Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
For challenges involving sequences, typically of numbers following some pattern.
11
votes
The Fibonacci Rectangular Prism Sequence
MathGolf, 6 bytes
This is not really interesting (but it is the shortest answer).
3r+f²Σ
Explanation
3, range, +, Fibonacci, square, sum.
Try it online!
4
votes
Generating generating expressions for sequences
Wolfram Language (Mathematica), 50 49 37 bytes
Returns a polynomial.
Mathematica is so awesome x+1 can be used as a variable in this context. Apart is a weird built-in that, quoting from the docs, see …
4
votes
Triangles in a tetrahedron
C++, all up to 40 in ten minutes
Runs in \$O(n^9)\$ time complexity (fortunately, it seems to be divided by at least 36 and it's also multi-threaded). I tested on Ubuntu 19.10 on AMD Ryzen 5 2600 (12 …
3
votes
Prime Factoral Roots
Jelly, 5 bytes
ÆfS$¡
Explanations:
Æf list of prime factors
S sum
$¡ repeat n times
Try it online!
3
votes
N-Dimensional Cartesian Product
Retina, 54 39 32 bytes
This took really long to write (as I tried to golf it too) (unsurprisingly, all the golfing ideas only appeared after I finally posted this). Takes input as a list of strings o …
2
votes
Generate list of numbers and their negative counterparts
C# (Visual C# Interactive Compiler), 47 46 bytes
Much shorter than the beautiful LINQ solutions with SelectMany :(
I also cannot remember when I last wrote a for loop while code-golfing, so I likely …
1
vote
Bit floating sequence
Retina, 24 bytes
.+
*0
/0/+<0`(0)1|0$
1$1
Outputs in binary. Input should have a trailing newline.
Attempt at explanation:
.+ #match the entire input
*0 #replace it with …