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 »

Activity for xnor‭

Type On... Excerpt Status Date
Edit Post #279625 Initial revision about 4 years ago
Answer A: Longest Increasing Subsequence
[Haskell], 37 bytes f(h:t)=max(1+f[x|xh])$f t f =0 Try it online!
(more)
about 4 years ago
Edit Post #279456 Post edited:
about 4 years ago
Edit Post #279457 Initial revision about 4 years ago
Answer A: Shape of an array
[Python 2], 37 bytes l=input() while 1:print len(l);l=l[0] Try it online! This makes heavy use of programs being allowed to terminate with error, which I assume is allowed by default because it is on SE. We repeatedly print the length, and then replace the list with its firs...
(more)
about 4 years ago
Edit Post #279456 Post edited:
about 4 years ago
Edit Post #279456 Post edited:
about 4 years ago
Edit Post #279456 Post edited:
about 4 years ago
Edit Post #279456 Post edited:
about 4 years ago
Edit Post #279456 Post edited:
about 4 years ago
Edit Post #279456 Initial revision about 4 years ago
Answer A: Weave Strings Together
[Haskell], 40 bytes ```haskell f((h:t):r)=h:f(r++[t]) f(:r)=f r f =[] ``` Try it online!
(more)
about 4 years ago
Edit Post #279370 Post edited:
about 4 years ago
Edit Post #279370 Initial revision about 4 years ago
Answer A: Partial Sums of Harmonic Series
[Python 3], 35 bytes f=lambda x,i=1:x>0and-f(x-1/i,i+1) Try it online! Subtracts each `1/i` in turn from the initial value until the result is no longer positive.
(more)
about 4 years ago
Edit Post #279182 Post edited:
about 4 years ago
Edit Post #279182 Post edited:
about 4 years ago
Edit Post #279182 Post edited:
about 4 years ago
Edit Post #279182 Post edited:
about 4 years ago
Edit Post #279182 Post edited:
about 4 years ago
Edit Post #279182 Initial revision about 4 years ago
Answer A: Print the Great Numeric Pyramid
[Python 2], 76 bytes i=27 whilei:print' 'i+' '.join(`min(i,j,27-i-j)`for j in range(28-i));i-=1 Try it online! Computes the digit in row `i` from the bottom, position `j` as `min(i,j,27-i-j)`. For comparison, a bad effect to compute the row numbers arithmetically, made ha...
(more)
about 4 years ago
Edit Post #279159 Post edited about 4 years ago
Edit Post #279160 Post edited:
about 4 years ago
Edit Post #279160 Post edited:
about 4 years ago
Edit Post #279160 Initial revision about 4 years ago
Answer A: Evaluate a single variable polynomial equation
[Haskell], 20 bytes f x=foldl((+).(x))0 Try it online! Takes input coefficients from highest degree to lowest. 21 bytes x%(h:t)=h+xx%t x%=0 Try it online!
(more)
about 4 years ago
Suggested Edit Post #279159 Suggested edit:

(more)
helpful about 4 years ago
Edit Post #279156 Initial revision about 4 years ago
Answer A: "Hello, World!"
[Python 2], 20 bytes print"Hello, World!" Try it online!
(more)
about 4 years ago