-
Notifications
You must be signed in to change notification settings - Fork 2
eulersnumber
bradendubois edited this page Nov 24, 2021
·
8 revisions
ID: eulersnumber
Difficulty: 2.3
CPU Time: 1 second
Memory: 1024 MB
One can calculate the approximation exactly as detailed in the description, but don't recompute the factorial for each digit from 0 to n; factoral(i) = i * factorial(i-1), so one can simply use a loop or something to do each, and build the next factorial off of the last.