New answers tagged

0 votes

Diamondize a Matrix

Perl 5, 67 bytes sub{map{[grep$_,map{shift@{$_[-$_]}}-$_..0]}0..$#_,($#_)x$#{$_[0]}} Try it online!
Xcali's user avatar
  • 14.2k
0 votes

Check if all non-zero elements in a matrix are connected

Vyxal 3, 8 bytes Þoᵛᵛa?∧₌ Try it Online! ...
pacman256's user avatar
  • 3,330
0 votes

Diamondize a Matrix

Vyxal, 22 bitsv2, 2.75 bytes Þ`R Try it Online! Bitstring: 0010101000111101000010
pacman256's user avatar
  • 3,330
0 votes

Reconstruct Matrix from its diagonals

Vyxal, 2 bytes Þ„ Try it Online! So apparently lyxal forgot there was a built in for this :p
pacman256's user avatar
  • 3,330
1 vote

Recursive Z-matrix

flax, 5 bytes G>1ṗ4 Port of @lynn's Jelly answer. Since the lastest version isn't on ATO, here is an image of the program running (in the REPL). Explanation It ...
zoomlogo's user avatar
  • 1,655
1 vote

Recursive Z-matrix

APL(Dyalog Unicode), 10 9 bytes SBCS ⊢⌸2<,⍳⎕⍴4 Try it on APLgolf! ...
Mukundan314's user avatar
  • 8,204
0 votes

Beware of the matrix tornado!

Uiua SBCS, 25 bytes ∧(⍜(↘⊙↻|≡⇌⍉)ׯ2.⊟.)⇡⌈÷2⧻. Try it! Fun problem. ...
chunes's user avatar
  • 23.4k
1 vote
Accepted

Borders of a Rectangular Matrix

Vyxal 3 , 6 bytes ḣṫ$ᵛÞh Try it Online! Abuses formatting quite a bit but there isn't a way to get diagonals yet. ...
pacman256's user avatar
  • 3,330
1 vote

Find the Cell's Neighbours

Vyxal 3, 11 bytes Πʀ⁰hẆÞȮ1⁾¹i Try it Online! Output is sorted in footer but is not necessary to the program bytecount input is of the form ...
pacman256's user avatar
  • 3,330

Top 50 recent answers are included