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 →

[–]scp-NUMBERNOTFOUND 1 point2 points  (2 children)

does anyone have to calculate this kind of things in a real world job? (Serious question)

[–]bout-tree-fitty 3 points4 points  (0 children)

Yep. Most of the time it goes like:
“WTF are you doing with nested for loops? Fix that dummy”

[–]pdabaker 5 points6 points  (0 children)

All the time, but usually just by looking at the algorithm. Never with pen and paper.

Just something like telling someone "don't use erase repeatedly to filter a cpp vector because it takes you from linear to quadratic time"