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

3 of 7
deleted 5 characters in body
ZaMoC
  • 25.5k
  • 2
  • 32
  • 87

Wolfram Language (Mathematica), 168 bytes

Min@(s=Select)[(f[f/@#~Partition~2,m=MixedRadix@{24,60}]-f[{v,f@p[[-2;;]]},m])&/@s[Permutations[p=#],24>(f=FromDigits)@#[[;;2]]>=(v=f@p[[;;2]])&&f@#[[-2;;]]<60&],#>0&]&

Try it online!

ZaMoC
  • 25.5k
  • 2
  • 32
  • 87

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