intfact(int n) { if (n <= 1) return 1; return n * fact(n-1); }
O(log2n)
O(n)
O(nlog2n)
O(n^2)
牛客网©2016 All Rights Reserved