Google Interview Question
Country: United States
Interview Type: In-Person
Adj list, but in following way:
Distributed hash map.
A key is either a node or pair of nodes.
If it is a node, a value is a pair that consists of key node and the first node in adjacency list.
If it is a pair. The key consists of node for who the adjacency list and the current node in adj list. A value consists of node for who the adjacency list and the next node in adj list.
For large graph with single machine i.e. limitedspace , We can use Map/ Reduce systems and Key/ value stores.
- RAJEEV RANJAN February 04, 2016