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*
-
\$\begingroup\$ if the string ends in 0s, it just removes them: Try it online! \$\endgroup\$naffetS– naffetS2022年12月27日 00:29:37 +00:00Commented Dec 27, 2022 at 0:29
-
\$\begingroup\$ here's 59 based on what you curerntly have though, to give you a good base: Try it online! \$\endgroup\$naffetS– naffetS2022年12月27日 00:46:15 +00:00Commented Dec 27, 2022 at 0:46
-
\$\begingroup\$ no it doesn't fix it, i just golfed your current code down. Try it online! that should end in a 3 \$\endgroup\$naffetS– naffetS2022年12月27日 00:52:37 +00:00Commented Dec 27, 2022 at 0:52
-
\$\begingroup\$ @Steffan fixed, thanks \$\endgroup\$James Risner– James Risner2022年12月31日 21:02:56 +00:00Commented Dec 31, 2022 at 21:02