Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Code Golf

Return to Revisions

4 of 10
added 71 characters in body
Jonathan Allan
  • 115.4k
  • 8
  • 68
  • 293

Jelly, (削除) 17 15 (削除ここまで) 14 bytes

bug found: alternating directions, cant fix right now so deleting

-3 bytes by taking a list of lists of digits (and returning one of them)

ṙJI€A’¬S€ṀμÐṀḢ

A monadic link accepting a list of lists of digits (the integer representation does not allow leading zeros) and returning the first one with a maximal run as described.

Try it online!

Jonathan Allan
  • 115.4k
  • 8
  • 68
  • 293

AltStyle によって変換されたページ (->オリジナル) /