Skip to main content
added 371 characters in body
Source Link
l4m2
  • 32.5k
  • 2
  • 26
  • 116

JavaScript (Node.js), 135 bytes

f=(s,n=8)=>n?[s.flatMap(t=>t.join``||[]),...f([...Array(L=(s+0).length)].map((_,y,p)=>p.map((_,x)=>(s[y+x-L>>1]||0)[(x-y)/2])),n-1)]:[] 

Try it online!

Slow. Complexity O(n^256) Proof that the rotation work Fast run

JavaScript (Node.js), 135 bytes

f=(s,n=8)=>n?[s.flatMap(t=>t.join``||[]),...f([...Array(L=(s+0).length)].map((_,y,p)=>p.map((_,x)=>(s[y+x-L>>1]||0)[(x-y)/2])),n-1)]:[] 

Try it online!

Slow. Complexity O(n^256) Proof that the rotation work

JavaScript (Node.js), 135 bytes

f=(s,n=8)=>n?[s.flatMap(t=>t.join``||[]),...f([...Array(L=(s+0).length)].map((_,y,p)=>p.map((_,x)=>(s[y+x-L>>1]||0)[(x-y)/2])),n-1)]:[] 

Try it online!

Slow. Complexity O(n^256) Proof that the rotation work Fast run

deleted 5 characters in body
Source Link
l4m2
  • 32.5k
  • 2
  • 26
  • 116

JavaScript (Node.js), 137135 bytes

f=(s,n=8)=>n?[s.flatMap(t=>t.join``||[]),...f([...Array(L=(s+0).length+8length)].map((_,y,p)=>p.map((_,x)=>(s[y+x-L>>1]||0)[(x-y)/2])),n-1)]:[] 

Try it online!Try it online!

Slow. Complexity O(n^256) Proof that the rotation work

JavaScript (Node.js), 137 bytes

f=(s,n=8)=>n?[s.flatMap(t=>t.join``||[]),...f([...Array(L=(s+0).length+8)].map((_,y,p)=>p.map((_,x)=>(s[y+x-L>>1]||0)[(x-y)/2])),n-1)]:[] 

Try it online!

Slow. Complexity O(n^256) Proof that the rotation work

JavaScript (Node.js), 135 bytes

f=(s,n=8)=>n?[s.flatMap(t=>t.join``||[]),...f([...Array(L=(s+0).length)].map((_,y,p)=>p.map((_,x)=>(s[y+x-L>>1]||0)[(x-y)/2])),n-1)]:[] 

Try it online!

Slow. Complexity O(n^256) Proof that the rotation work

Source Link
l4m2
  • 32.5k
  • 2
  • 26
  • 116

JavaScript (Node.js), 137 bytes

f=(s,n=8)=>n?[s.flatMap(t=>t.join``||[]),...f([...Array(L=(s+0).length+8)].map((_,y,p)=>p.map((_,x)=>(s[y+x-L>>1]||0)[(x-y)/2])),n-1)]:[] 

Try it online!

Slow. Complexity O(n^256) Proof that the rotation work