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 Andrew Ray‭

Type On... Excerpt Status Date
Edit Post #292620 Initial revision 2 months ago
Answer A: Fibonacci without consecutive digits
[Haskell], 110 bytes ``` haskell c[]=1>0 c(a:b:)|abs(a-b)==1=1<0 c(:b)=c b f=0:1:zipWith(+)f(tail f) h=[g|g<-f,c.map fromEnum.show$g] r=(h!!) ``` Try it online!
(more)
2 months ago
Edit Post #292122 Post edited:
Add description
4 months ago
Edit Post #292122 Initial revision 4 months ago
Answer A: Substring factor
[Haskell], 101 95 bytes ``` haskell import Data.List r a=or$map(a?)$(map read$tail.inits=tail.inits=map read$tail.inits=map(a?)$(map read$tail.inits=<<tails(show a))\\[a]` Finally, collapse the list into a single boolean output by using the `or` function, which takes a list of booleans and ret...
(more)
4 months ago
Edit Post #292103 Initial revision 4 months ago
Question Towers of DC .:.
DC is a reverse-Polish calculator REPL that is available on most Linux distributions. In reverse-Polish notation, you can push values to a stack and then pop those values back off to perform operations, pushing the result back. For example, a minimal DC program to prompt for two inputs, add them, and...
(more)
4 months ago