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

1 of 7
Jonathan Allan
  • 115.4k
  • 8
  • 68
  • 293

Jelly, 36 bytes

×ばつÑṠḟ0Ṃ
ÑAI
OIḟ0
ÇṠḢ;2L·;Ñ

TryItOnline
Or see the test cases

(My lack of chaining skill is probably costing a few bytes here)

Jonathan Allan
  • 115.4k
  • 8
  • 68
  • 293

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