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) |
— | over 1 year ago |
Comment | Post #288398 |
Can the polynominos be mirrored? (more) |
— | over 1 year ago |
Edit | Post #288403 | Initial revision | — | over 1 year 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) |
— | over 1 year ago |
Comment | Post #288398 |
Can I take the number of Xs in the input as an extra input? (more) |
— | over 1 year ago |