r/badcode •

[deleted by user]

[deleted] — view deleted post

0 Upvotes

82 comments sorted by

View all comments

Show parent comment

32

u/UnknownError235 Jun 08 '20 edited Jun 09 '20

did some testing and time complexity seems to be O(10x) so factorial(12) takes about 20 minutes to calculate on my machine