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.
Jonathan Allan
- 115.4k
- 8
- 68
- 293