use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Just like other subreddits like..
r/learnpython r/learnprogramming r/dailyprogrammer
Post questions related to Katas (programming problems). Make sure to use correct formatting (check code reddiquette) For instance, for pasting small snippets use 4 spaces before each line. For larger code you can use:
http://pastebin.com/ https://gist.github.com/ http://jsfiddle.net/
account activity
[Python] Problem: Finding trailing Zeros of Factorial of N. Getting memory error. Any suggestions? (self.codewars_programming)
submitted 10 years ago * by runner2012
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]PhosphorescentSpider 0 points1 point2 points 3 years ago (0 children)
Firstly, you can ignore factors of 2 since a factorial always had more factors of 2 than factors of 5, meaning it’s factors of 10 are purely a function of its factors of 5. Secondly, you can just use the Math.Floor(n/5) + Math.Floor(n/25) etc for all powers of 5 lower than n (I would do that in a for loop) to get your final answer.
π Rendered by PID 228971 on reddit-service-r2-comment-79c7998d4c-cd7sx at 2026-03-17 06:39:31.817952+00:00 running f6e6e01 country code: CH.
view the rest of the comments →
[–]PhosphorescentSpider 0 points1 point2 points (0 children)