by nyrikki · 2y ago · 0 comments
At a Google interview I tried to explain that in big-O notation the sequence can only exceed the bound in a finite prefix of the sequence.
Formally:
O(g(n)) = { f(n): there exist positive constants c and n_0 such that 0 ≤ f(n) ≤ cg(n) for all n ≥ n_0 }
I was actually made the interviewer mad with that when he asked if there was any reason to use non-recursive search algorithms and I was providing justification.
I still got an offer but turned it down because I need an environment where I can learn where my blind spots are and return in kind with the team.
It looks like he took that job, I didn't.
Mix with what is probably some standard questions inside Google and it illustrates the problem I was thinking about.
That is one of the better videos I have seen on the topic, so thanks for sharing it.
The trivia game without context of assumptions and constraints is problematic for everyone.