Skip to main content
2 of 4
Adjust for case not mattering
skeevey
  • 4.4k
  • 19
  • 22

k (50 49)

{2*sqrt x$x:0 0f+/("udlr"!(1 0;-1 0;0 -1;0 1))@x}

Example

{2*sqrt x$x:0 0f+/("udlr"!(1 0;-1 0;0 -1;0 1))@x}"uuuudrrrl"
7.211103
skeevey
  • 4.4k
  • 19
  • 22