Yelp interview question

What is Big O notation?

Interview Answers

Anonymous

8 Aug 2014

Definition: A theoretical measure of the execution of an algorithm, usually the time or memory needed, given the problem size n, which is usually the number of items. Informally, saying some equation f(n) = O(g(n)) means it is less than some constant multiple of g(n).

1

Anonymous

22 Oct 2014

O(N) is the big O notation, it gives the time complexity of the algorithm. A algorithm accessing N elements of an array would require N-1 steps, then the time complexity or the big O notation of it is O(N).