
오랜만에 C#으로 다시 문제를 풀기 시작했다~ 최근에 Java로 코딩을 연습해야 할 일이 생겨서 Java로 문제를 풀고 있었다. 기본 틀 :using System;public class Solution { public int solution(int n, int[,] wires) { int answer = -1; return answer; }} wires에 연결된 point - point가 중구난방으로 작성 돼 있기 때문에 Dictionary와 HashSet으로 정리해줬다. Dictionary> dict = new Dictionary>(); // point 간 연결이 2개인 경우를 대비해서 Dictionary와 HashSet 사용..