Does Big O Measure Memory Requirments Or Just Speed?

前端 未结 8 1733
孤城傲影
孤城傲影 2021-02-18 16:08

I often here people talk about Big O which measures algorithms against each other

Does this measure clock cycles or space requirements.

If people want to contras

8条回答
  •  野的像风
    2021-02-18 16:15

    Short answer : you have 'Big O in space" and "Big O in time".

    Long answer: Big O is just a notation, you can use it in whatever context you want.

提交回复
热议问题