728x90 그래프2 [LeetCode | Java | Graph 문제 풀이] 1791. Find Center of Star Graph - Solution with edge의 노드값 비교 99 Club 2기 | Java | Beginner⭐ 1791. Find Center of Star Graph🏷 관련 주제 : Graph EasyThere is an undirected star graph consisting of n nodes labeled from 1 to n.A star graph is a graph where there is one center node and exactly n - 1 edges that connect the center node with every other node.You are given a 2D integer array edges where each edges[i] = [ui, vi] indicates that there is an edge between .. 2024. 6. 13. [99클럽] 99클럽 코테 스터디 24일차 TIL + 그래프(Graph) 👈 이전글[99클럽] 99클럽 코테 스터디 23일차 TIL + Array, Binary Search, Matrix99Club 2기 | Java | Beginner🗝 오늘의 학습 키워드 : Graph 📚 공부한 내용 본인의 언어로 정리하기[LeetCode | Java | Graph 문제 풀이] 1791. Find Center of Star Graph - Solution with edge의 노드값 비교 ⌛ 오늘의 회고오늘은 그래프 관련 문제가 나왔다.근데 star graph가 모든 노드들이 한 노드에 연결되어 별 모양처럼 생긴 그래프라그냥 edge 2개만 비교해 봐도 어디가 중심노드인지 알 수 있어서코드가 edge2개를 직접 비교하도록 작성했는데뭔가 알고리즘이나 다른 것을 이용하는 것도 아니고너무 간.. 2024. 6. 13. 이전 1 다음 728x90