Panda Guru LogoPanda
Guru

Google | SWE | On campus Hiring | Rejected

Round 1

Questions: Given an undirected graph with some faulty nodes where you are not allowed to visit. Is it possible to reach from node A to node B?

Follow up: If we consider the cost to be 1 of each teleportation what’s the minimum cost?

Follow up: if we can repair the node by paying amount C (C can be different for each faulty node). What's the minimum cost now?

Follow up: if we can repair the node by paying amount C (same cost for all faulty nodes) and all other nodes are free to travel, what’s the cost now?

Candidate's Approach

No approach provided.

Interviewer's Feedback

No feedback provided.


Round 2

Questions: Given an undirected graph, Alice and Bob are standing somewhere (node index is given), They want to reach a common destination D such that the number of unique edges they traverse is as minimum as possible. (Most hops should be common.!)

Googliness:

Candidate's Approach

No approach provided.

Interviewer's Feedback

No feedback provided.


Round 3

Questions: K window of a list = distinct elements in the first K elements. Given 2 lists, modify list2 such that the k windows of the 2 lists don’t have any common element. Return the new list (Asked to optimize the space multiple times).

Variation: Instead of 2 lists we have n lists, and a distance parameter d, the k window of a list shouldn’t have any common element with any of the previous ‘d’ lists. Return the new lists.

Googliness:

Candidate's Approach

No approach provided.

Interviewer's Feedback

No feedback provided.