Skip to content

Commit 10be2e5

Browse files
committed
add Complexity for factorial
1 parent fd82feb commit 10be2e5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

source/mir/math/numeric.d

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -520,6 +520,7 @@ Params:
520520
count = number of product members
521521
start = initial member value (optional)
522522
Returns: `(count + start - 1)! / (start - 1)!`
523+
Complexity: O(count)
523524
+/
524525
auto factorial
525526
(size_t coefficientSize = 128, Exp = sizediff_t)

0 commit comments

Comments
 (0)