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 mousetail‭

Type On... Excerpt Status Date
Comment Post #288398 The idea is that you find N polynominos so they can be rearanged into one larger shape right? But the question is how are you allowed to re-arange them. Would something like this: ``` XXXX XXXX ``` Be valid when subdivided into 2x ``` XX XX ``` What about ``` XX XX XXXX ``` ?
(more)
11 months ago
Comment Post #288398 Can the polynominos be mirrored?
(more)
11 months ago
Edit Post #288403 Initial revision 11 months ago
Answer A: Determine if a polyomino is "prime"
Rust, 425 bytes ```rust |a:T|a.iter().any(|b|a.iter().any(|c|c!=b&&f(&a,&vec![b],&vec![c])));fn g(a:&T,b:&T,c:&T,e:(i8,i8))->bool{[(0,1),(1,0),(-1,0),(0,-1)].iter().any(|g|{let m=(e.0+g.0,e.1+g.1);a.contains(&m)&&!b.contains(&m)&&!c.contains(&m)&&f(a,&[vec![m],b.clone()].concat(),c)})}fn f(a:&T,b...
(more)
11 months ago
Comment Post #288398 Can I take the number of Xs in the input as an extra input?
(more)
11 months ago