3 deleted 60 characters in body
source | link

J, 1010 9 bytes

('ny'{~=)&'ny'@=/

Try it online!

Also 10 in APL, try it onlineTry it online!

J, 10 bytes

('ny'{~=)/

Try it online!

Also 10 in APL, try it online

J, 10 9 bytes

{&'ny'@=/

Try it online!

2 added 137 characters in body
source | link

J, 10 bytes

('ny'{~=)/

Try it online!

Also 10 in APL, try it online

J, 10 bytes

('ny'{~=)/

Try it online!

J, 10 bytes

('ny'{~=)/

Try it online!

Also 10 in APL, try it online

1
source | link

J, 10 bytes

('ny'{~=)/

Try it online!