Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • 2
    \$\begingroup\$ Welcome to Code Golf, and nice first answer. You can use Try it online! to let people try your code online. It also calculates the byte count and generates the SE answer for you. You can use it like this. You can exclude the f= part from the byte count since it works as an anonymous inline function. \$\endgroup\$ Commented May 22, 2020 at 4:18
  • 2
    \$\begingroup\$ You can also switch to an older Julia version and save a few bytes by using gamma instead of factorial: 34 bytes \$\endgroup\$ Commented May 22, 2020 at 9:34
  • 1
    \$\begingroup\$ @Bubbler Thanks for the tips, I'm new to the community and looking forward to contribute. \$\endgroup\$ Commented May 22, 2020 at 17:59