Skip to main content
deleted 4 characters in body
Source Link
Jonathan Allan
  • 110.2k
  • 7
  • 65
  • 282

Python 3, 38 bytes

lambda n:n*12-11-([1]*n+[2,4,4,0])[-n]

Try it online!

Python 3, 38 bytes

lambda n:n*12-11-([1]*n+[2,4,4,0])[-n]

Try it online!

Python, 38 bytes

lambda n:n*12-11-([1]*n+[2,4,4,0])[-n]

Try it online!

Source Link
Jonathan Allan
  • 110.2k
  • 7
  • 65
  • 282

Python 3, 38 bytes

lambda n:n*12-11-([1]*n+[2,4,4,0])[-n]

Try it online!