Google interview question

Graph based question leetcode medium?

Interview Answer

Anonymous

Oct 10, 2024

Solve the testcase verify the answer , so that both are on same page He was satisfied with the answer and asked for the approach I explained him about how I will begin and compute He seemed satisfied and told me to code directly I coded on their interview doc Time complexity, scope of avoiding redundant code, optimisation are the following questions.