AndurilSoftware Engineer · Technical ScreenCodemia practiceTransform string to adjacency list
Given a string representation of a graph where each node is connected by commas, transform this string into an adjacency list. The output should be a dictionary where each key is a node and its value is a list of connected nodes. For example, the input "A,B,C;B,A;C,B" should produce an adjacency list like {"A": ["B", "C"], "B": ["A", "C"], "C": ["B"]}.