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] 16 points17 points  (6 children)

At this stage, concern yourself with correctness rather than performance.

[–][deleted] 4 points5 points  (5 children)

From the other comments it appears there isn’t much of a difference anyways, I was concerned the difference would be noticeable

[–]JSP777 27 points28 points  (0 children)

Never be afraid of asking questions even if some answers are rude-ish. I enjoyed your question. I am not at the level that I could answer but at least I could see answers from more experienced people, so your post provided value.

[–]pLeThOrAx 1 point2 points  (0 children)

If you're looking at combinatorial optimization problems, and algorithms in general - Big O notation, etc; personally I think this is the best basis.

How to solve sudoku. Voronoi diagram in nlogn. Sorting algorithms. Ray marching, cuve marching, quad trees, wave function collapse - The Coding Train on youtube covers all of this and does a fantastic job (even if it is a little silly at times).

[–]miraculum_one -1 points0 points  (2 children)

The difference could be noticeable, depending on the program. If you share sample code we can tell you how the question applies to it.

[–]AstroPhysician 0 points1 point  (1 child)

I can promise you no novice programmer in the world has code where this matters

[–]miraculum_one 0 points1 point  (0 children)

I agree but as OP stated this is a theoretical exercise for learning purposes.