68 Reputation Points
Ranked #392
- Strength to Increase Rep
- +4
- Strength to Decrease Rep
- -1
100% Quality Score
- Upvotes Received
- 5
- Posts with Upvotes
- 1
- Upvoting Members
- 5
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
2 Posted Topics
[QUOTE=daviddoria;828369]where there are many, many constructors to initialize the class when different quantities are available at the time of construction.[/QUOTE] Maybe you should reconsider this. Instead use static functions or external functions that call only a limited set of constructors.
Re: Time complexity
Count the number of steps it takes. The stuff that makes the for loops run takes a constant amount of time through each iteration so you only need to count how many iterations happen. There are n outer iterations, and n*n middle iterations per outer iteration, and n*n*n inner iterations …
The End.
Dashakil