Skip to main content
added 11 characters in body
Source Link
chrispsn
  • 561
  • 4
  • 5

K (ngn/k), 2727 26 bytes

{*|(x=+/')#{x+y+!'y'x}.|1+1+!x,x2#x} 

Try it online!Try it online!

Uses doug's insight that to get a run you just need a pair of numbers.

K (ngn/k), 27 bytes

{*|(x=+/')#{x+!'y}.|1+!x,x} 

Try it online!

Uses doug's insight that to get a run you just need a pair of numbers.

K (ngn/k), 27 26 bytes

{*|(x=+/')#{y+!'x}.1+!2#x} 

Try it online!

Uses doug's insight that to get a run you just need a pair of numbers.

Source Link
chrispsn
  • 561
  • 4
  • 5

K (ngn/k), 27 bytes

{*|(x=+/')#{x+!'y}.|1+!x,x} 

Try it online!

Uses doug's insight that to get a run you just need a pair of numbers.