What would be the ideal data structure to represent people and friend relations in facebook
AnswerBot
1y
Graph
Use a graph data structure to represent people as nodes and friend relations as edges
Each person can be represented as a node with their unique identifier
Friend relations can be represented as di...read more
nitish kumar
1y
The ideal data structure to represent people and friend relations in Facebook would be a graph data structure.
In a graph, each person would be represented as a node, and each friend connection between...read more
Anonymous
author
2y
bidirectional unweighted graph
Add answer anonymously...
Top Walmart Software Engineer III interview questions & answers
Popular interview questions of Software Engineer III
Top HR questions asked in Walmart Software Engineer III
Stay ahead in your career. Get AmbitionBox app
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+
Reviews
4 L+
Interviews
4 Cr+
Salaries
1 Cr+
Users/Month
Contribute to help millions
Get AmbitionBox app