codewars
kejingli2015
这个作者很懒,什么都没留下…
展开
-
01 Find the odd int(找到出现次数为奇数的int)
Description:Given an array, find the int that appears an odd number of times. There will always be only one integer that appears an odd number of times.public class FindOdd { public static int findI原创 2016-11-18 15:59:56 · 1131 阅读 · 0 评论 -
02 Number of trailing zeros of N!(求N的阶乘末尾0的数目)
题目描述Write a program that will calculate the number of trailing zeros in a factorial of a given number.N! = 1 * 2 * 3 * 4 … Nzeros(12) = 2 # 1 * 2 * 3 .. 12 = 479001600 that has 2 trailing zeros 479原创 2016-11-19 17:03:06 · 506 阅读 · 0 评论