leetle

Daily challenge for 2025-12-29

363. Find the Star Center

You are given a 2D integer array edges representing a star graph. A star graph is a graph where there is one center node connected to exactly n - 1 other nodes. Each edges[i] = [u, v] indicates that there is an edge between nodes u and v. Return the center of the given star graph.

Example:
Input: edges = [[1,2],[2,3],[4,2]] Output: 2

Run this challenge interactively in Python or JavaScript when the app loads.