A short solution


  • -2
    W

    class Solution {
    public:
    int trailingZeroes(int n) {
    return n>4?trailingZeroes(n/5)+n/5:0;
    }
    };

    But there is no use about it.

    然而这并没有什么卵用。


Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.