What counts as a step?
https://news.ycombinator.com/item?id=3206377Hello all! Learning Big O Notation now, and was wondering –– what counts as a step?
For example, in pseudocode:
function a(x): return x + x
How many steps are there? 2? Or 1? Basically, what counts as a 'step' in a programming language –– is it just any statement or are there certain exceptions.
Or maybe I'm just complicating the issue?
Thanks!