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*

8
  • 1
    \$\begingroup\$ Welcome to Code Golf, and nice first answer! Submissions are required to make a serious effort to meet the winning criteria as much as possible, in this case code-golf. You did a pretty good job of that already with short variable names and things like that, but you should make sure to also remove unnecessary whitespace. \$\endgroup\$ Commented Nov 17, 2021 at 17:21
  • 1
    \$\begingroup\$ No problem, glad to help! Also, I don't know personally know anything about Rust, but you should check out our tips for golfing in Rust to see if there are any other golfs you could use. Happy golfing! \$\endgroup\$ Commented Nov 17, 2021 at 17:24
  • 1
    \$\begingroup\$ You forgot to remove 1 space in your print. :) \$\endgroup\$ Commented Nov 17, 2021 at 17:38
  • 2
    \$\begingroup\$ With lots of type and output format fiddling, it is possible to get down to 98 bytes. \$\endgroup\$ Commented Nov 18, 2021 at 1:59
  • 3
    \$\begingroup\$ And 90 as a closure. \$\endgroup\$ Commented Nov 18, 2021 at 2:03