Skip to main content
added 149 characters in body
Source Link
hyper-neutrino
  • 42.4k
  • 5
  • 68
  • 224

Python 3, 3228 bytes

lambda x:max(26-x*11,1-(x%12<1)x%12>0)

Try it online!Try it online!

-4 bytes thanks to ovs

If the boolean output is invalid (in Python, True == 1 and False == 0), add + before the max to turn it into an int.

Python 3, 32 bytes

lambda x:max(26-x*11,1-(x%12<1))

Try it online!

Python 3, 28 bytes

lambda x:max(26-x*11,x%12>0)

Try it online!

-4 bytes thanks to ovs

If the boolean output is invalid (in Python, True == 1 and False == 0), add + before the max to turn it into an int.

Source Link
hyper-neutrino
  • 42.4k
  • 5
  • 68
  • 224

Python 3, 32 bytes

lambda x:max(26-x*11,1-(x%12<1))

Try it online!