LinkedInSoftware Engineer · Technical ScreenCodemia practiceValidate graph symmetric
Given an undirected graph represented as an adjacency list, write a function to determine if the graph is symmetric. A graph is considered symmetric if for every edge (u, v), there is a corresponding edge (v, u). The function should return a boolean value indicating whether the graph satisfies this property.