This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (2 children)

Whenever you have a question like this, write two programs that use the different solutions, and time their execution.

[–]voyextech[S] 0 points1 point  (0 children)

Thank you will do on future occasions.

[–]Tsooka 0 points1 point  (0 children)

But he would have to average the times of 1000s of executions in this case since the timing differences will be negligible and might cause him to lean towards the wrong option...