Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »

Search

Advanced Search Options

To further refine your search, you can use additional qualifiers such as score:>0.5. For example, the search score:>=0.5 created:<1y grammar would return only posts mentioning "grammar" that have a score >= 0.5 and were created less than a year ago.

Further help with searching is available in the help center.

Quick hints: tag:tagname, user:xxx, "exact phrase", post_type:xxx, created:<N{d,w,mo,y}, score:>=0.5

Filters
 
71%
+3 −0
Challenges Beaver Code Decryption

Jelly, 9 bytes ŒHß¹Ḋ?€ZẎ Try it online! How it works ŒHß¹Ḋ?€ZẎ - Main link f(S). Takes a string S on the left ŒH - Split S into two halves € - Over each half H: ? - ...

posted 4y ago by caird coinheringaahing‭

Answer
71%
+3 −0
Challenges Beaver Code Decryption

Solutions by ngn https://chat.stackexchange.com/transcript/message/57690032#57690032 APL 17: {⍵[⍋⍋⍉⊖2⊥⍣¯1⍳≢⍵]} ngn/k 13: {x@<<+|2\!#x} These are too good not to post.

posted 4y ago by rak1507‭  ·  edited 4y ago by rak1507‭

Answer
71%
+3 −0
Challenges Really Cool Numbers

Define a cool number as a number whose proper divisors (all except for the number itself) have an integral mean. Define a really cool number as a number whose divisors (including itself) are all co...

3 answers  ·  posted 4y ago by Quintec‭  ·  last activity 4y ago by user‭

Question code-golf math
71%
+3 −0
Challenges Really Cool Numbers

BQN, 25 bytesSBCS ⌊⊸≡(/0=↕⊸|){(+´÷≠)∘𝔽¨«⟜𝔽} Run online! This expression has a complicated structure. This link uses BQN's explain feature to show the order in which everything is applied. It's...

posted 4y ago by Marshall Lochbaum‭  ·  edited 4y ago by Marshall Lochbaum‭

Answer
71%
+3 −0
Challenges Make my number a set

Haskell, 51 31 bytes Saved 20 bytes thanks to Hakerh400! data S=S[S] f i=S$map f[0..i-1] Try it online! S is a recursive data structure, because sets of varying element types can't be repr...

posted 4y ago by user‭  ·  edited 4y ago by user‭

Answer
71%
+3 −0
Challenges Golf a FRACTRAN interpreter

Python 3, 76 71 bytes Saved 5 bytes thanks to user def f(p,n):l=[n*p//q for(p,q)in p if n%q<1];return f(p,l[0])if l else n Try it online! This code assumes that the fractions are given a...

posted 4y ago by celtschk‭  ·  edited 3y ago by celtschk‭

Answer
71%
+3 −0
Challenges Juggler sequences

APL (Dyalog Unicode), 15 bytesSBCS With many thanks to Marshall Lochbaum and dzaima for their help debugging and golfing this answer {⍵∪⌊⍵*2|⍵+.5}⍣≡ {⍵∪⌊⍵*2|⍵+.5}⍣≡ ⍝ ⍵ is our input of eith...

posted 4y ago by SherlockSage‭

Answer
71%
+3 −0
Challenges Juggler sequences

JavaScript (Node.js), 73 66 bytes This returns a Generator, which calculates the sequence on the fly when you use it! function*f(a){while(a>1){yield a a=~~(a%2?a**1.5:a**0.5)} yield a} Or...

posted 4y ago by forestbeasts‭  ·  edited 4y ago by forestbeasts‭

Answer
71%
+3 −0
Challenges Backspace an array

Scala, 45 bytes _./:(Seq[Int]())((a,x)=>a:+x dropRight-x*2+2) Try it in Scastie! I couldn't find a way to use underscores in the inner function :(. Explanation on its way. _ //The inp...

posted 4y ago by user‭  ·  edited 4y ago by user‭

Answer
71%
+3 −0
Challenges Backspace an array

Jelly, 6 bytes ṣ0Ṗ;¥/ Try it online! How it works ṣ0Ṗ;¥/ - Main link. Takes a list on the left ṣ0 - Split at zeroes ¥/ - Reduce by: Ṗ - Remove the last element ; - C...

posted 4y ago by caird coinheringaahing‭

Answer
71%
+3 −0
Challenges "Hello, World!"

SOGL, 10 bytes ╥‰~⅜,(ε ‘ū Try it here! Built-in compression of "hello"; ", "; "world"; "!", with first letters of words uppercased.

posted 4y ago by dzaima‭

Answer
71%
+3 −0
Challenges "Hello, World!"

Bash, 18 bytes echo Hello, World! Try it online!

posted 4y ago by 2x-1‭

Answer
71%
+3 −0
Challenges Prime Difference

Dyalog APL Extended, 14 bytes {¯4⍭4⍭⍣(⍵≤-)2} Try it online! {¯4⍭4⍭⍣(⍵≤-)2} Monadic dfn 2 start with 2 ⍣ Repeat 4⍭ the function "next prime" ...

posted 4y ago by dzaima‭

Answer
71%
+3 −0
Meta Should we import our old policy posts?

For a small number of posts, it will be easier to create them here than to import them. Your moderators (yes we need to get some) can create new help topics, which you can link to from question po...

posted 4y ago by Monica Cellio‭

Answer
71%
+3 −0
Meta Do you want any special tag styling or requirements?

For reference, this is the list of tags we have from SE which is 9 pages long, so I'll take the liberty of listing out which ones are "required" tags, as they are used to signify a scoring criterio...

posted 4y ago by Razetime‭

Answer
71%
+3 −0
Challenges Prime Difference

Husk, 8 bytes Ψḟo≥⁰≠İp Try it online! or Verify first 8 values It is always a good day when you get to use Ψ in your program. Explanation Ψḟo≥⁰≠İp İp to the infinite list of prime num...

posted 4y ago by Razetime‭  ·  edited 4y ago by Razetime‭

Answer
71%
+3 −0
Challenges Partial Sums of Harmonic Series

JavaScript (Node.js), 47 bytes f=(a,b=0,c=a=>a&&1/a+c(a-1))=>c(b)<a?f(a,b+1):b Try it online! For large numbers, a rounding error will occur and yield incorrect result. The ...

posted 4y ago by Hakerh400‭

Answer
71%
+3 −0
Sandbox Weave strings together[FINALIZED]

posted 4y ago by Razetime‭  ·  edited 4y ago by Razetime‭

71%
+3 −0
Challenges Length of a Sumac Sequence

JavaScript (Node.js), 27 25 bytes (-2 thanks to JoKing) f=(a,b)=>a<0?0:1+f(b,a-b) Try it online!

posted 4y ago by Moshi‭  ·  edited 4y ago by Moshi‭

Answer
71%
+3 −0
Challenges Length of a Sumac Sequence

Japt -N, 9 bytes ¨T©ÒßVVnU Try it ¨T©ÒßVVnU :Implicit input of integers U & V ¨ :U is >= T : 0 © :Logical AND with Ò :Negate the...

posted 4y ago by Shaggy‭  ·  edited 4y ago by Shaggy‭

Answer
71%
+3 −0
Challenges "Hello, World!"

R, 20 bytes cat("Hello, World!") Try it online!

posted 4y ago by Zerotime‭  ·  edited 4y ago by Zerotime‭

Answer
71%
+3 −0
Challenges Tile pyramids on top of each other!

AppleScript, 264 bytes Sue me. It works. set n to text returned of (display dialog "" default answer "") as number set o to "" repeat with i from 1 to n repeat (n-i) times set o to o...

posted 4y ago by DonielF‭

Answer
71%
+3 −0
Challenges 1, 2, Fizz, 4, Buzz!

Japt -R, 28 bytes Lõ@"Fizz"pXv3)+"Buzz"pXv5)ªX I spent a long time playing with wizardry string/array slicing. It did not work out. This solution just repeats "Fizz" and "Buzz" if divisible. T...

posted 4y ago by Quintec‭

Answer
71%
+3 −0
Meta Who should the temporary moderators be?

I also endorse the nomination for Jo King. However, they have yet to accept the nomination, leaving us with zero viable nominations as of current writing. So, with great hesitation, I put my name f...

posted 4y ago by C. K. Young‭

Answer
71%
+3 −0
Sandbox Run-length encode a byte sequence [FINALIZED]

posted 4y ago by celtschk‭  ·  edited 2y ago by trichoplax‭