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.
9
votes
Count up folks!
Java 8, 43/69/94 bytes
Crossed out 44 is still a regular 44 -- wait, I didn't cross it out I just replaced it :(
If I can return a LongStream: (43 bytes)
n->java.util.stream.LongStream.range(1,n+ …
0
votes
Find the program that prints this integer sequence (Cops' thread)
Python 3, 108 bytes (Cracked)
Warning (and hint): my implementation is dreadfully slow...
>>> a(0)
0
>>> a(4)
2
>>> a(16)
8
>>> a(20)
42
a(0) is the first element of the series exactly as defined …
0
votes
Find the program that prints this integer sequence (Cops' thread)
Python 3, 50 bytes (Cracked)
Another one, because I like this sequence
>>> a(1)
0
>>> a(10)
2303
The first number from the sequence is a(0). # used to obfuscate characters. …
0
votes
Find the program that prints this integer sequence (Cops' thread)
Python 3, 58 bytes (Cracked)
One last series
>>> a(0)
0
>>> a(4)
8
>>> a(5)
17
Sequence starts with a(0). …
2
votes
Print numbers from 1 to 10
Swift 3 (Jun 20, 2016), 20 bytes
print(Array(1...10))
Try it online!
Just doing print(1...10) (un)surprisingly prints 1...10 to STDOUT, so we need to unwrap the Range object into an Array. A Set …