Pergunta de entrevista da empresa Akamai

Q1: Find the common ancestor of two nodes in a binary tree (not binary search tree). Interviewers didn't know the complexity. Q2: Write echo client-server model. It is expected to know the signatures of the apis and the arguments passed in bind, listen, accept. Q3: Implement ringbuffer.

Respostas da entrevista

Sigiloso

16 de abr. de 2015

Q1:Provided the first solution as mentioned in "Cracking the coding interview". Not the second one which is improving the solution by a constant factor. They asked for complexity, its O(n) as mentioned in the book. The reason is that you do n + n/2 + n/4...operations. Which adds to n( 1+ 1/2 + 1/4...) = 2n. The interviewers who were both seniors claimed this is exponential. Obviously confusing it with the 1 + 2 +3 + ...n = n(n+1)/2..On the feedback of my rejection i was told i had issues with complexity...some people..

2

Sigiloso

18 de jan. de 2021

The key in these questions is to cover the fundamentals, and be ready for the back-and-forth with the interviewer. Might be worth doing a mock interview with one of the Akamai or ex-Akamai Systems Software Engineer experts on Prepfully? They give real-world practice and guidance, which is pretty helpful. prepfully.com/practice-interviews