Number of Digit One 数字1的个数 (LeetCode 233)
摘要:题目:Given an integer n, count the total number of digit 1 appearing in all non-negative integers less than or equal to n. (LeetCode 233) Hint: 提示放在最后面了
阅读全文
N-Queens N皇后问题 (LeetCode 51)
摘要:题目:The n-queens puzzle is the problem of placing n queens on an n×n chessboard such that no two queens attack each other. (LeetCode 51) Given an integ
阅读全文
Factorial Trailing Zeroes 阶乘尾零 (Leetcode 172)
摘要:题目:Given an integer n, return the number of trailing zeroes in n!.(Leetcode 172) Note: Your solution should be in logarithmic time complexity. C++参考框架
阅读全文