Monday, July 25, 2016

Factorial - facebook code lab

July 25, 2016

Given an integer n, return the number of trailing zeroes in n!.
Note: Your solution should be in logarithmic time complexity.
Example :
n = 5
n! = 120 
Number of trailing zeros = 1
So, return 1
Plan to work on the problem.

Blogs to read:
1. Find maximum length snake sequence:

http://www.geeksforgeeks.org/find-maximum-length-snake-sequence/

2. Root to leaf path sum equal to a given number
http://www.geeksforgeeks.org/root-to-leaf-path-sum-equal-to-a-given-number/

Blog to read:
1. How to construct a blog in 10 minutes? Using github and jekyII?

http://cenalulu.github.io/jekyll/how-to-build-a-blog-using-jekyll-markdown/

2. Buy a domain, buy a Alibaba cloud virtual computer, Nginx + WordPress - set up youownsite.com
http://storypku.com/2014/05/%E5%88%9B%E7%AB%99%E8%AE%B0/


No comments:

Post a Comment