Round : Telephonic:
Given a map with islands which are surrounded by water, 4 kount the number of islands in the map.
Input: grid = [
[1, 1, 1],
[0, 1, 0],
[1,0,0],
[1,0,1]
]
Output: 3Round 1 :
We are in charge of designing a system to install packages on computer systems.
We are required to support the installation of a package and all of its dependent packages. 3- Here is an example of a package structure that we would need to install:
A depends on B, C
B depends on D, E, F
C depends on F
F depends on G
Define what a package looks like and code a solution to this problem.
Lets assume the installation logic for a singular package will be implemented by the appropriate platform teams.Round 2: System Design
I was asked to design Office 365's online appRound 3:
Given the size of a city and a list of Amazon locker locations within that city, calculate
and return a two-dimensional array with values corresponding to the distance to the nearest Amazon locker.Round 4
Consider a popular social networking website, Facebook for example.
People can create their own profile and add the profiles of others to their friends list.
You are given two Facebook profiles, "Gordon" and "Stephen".
I would like to find out how to get from Gordon's profile to Stephen's profile by navigating through Gordon's friends, then friends of friendsand so on.
For example:
Gordon
Shantel (who is friends with Gordon)
Maria (who is friends with Shantel)
David (who is friends with Maria)
Stephen (who is friends with David)
I would like you to create an algorithm to automatically generate a 18 list of profiles, each of who is a friend of the previous entry.
which link the starting profile to the end profile. The algorithm
will return the list of selected profiles.Comments (0)


