MonoBehaviour (1) 썸네일형 리스트형 [TIL]2024-4-18 / 73일차 - 최종 프로젝트 7주차 4일차 1. 오늘의 알고리즘 코드 카타 - 개인정보 수집 유효 기간 답안 : //추월은 순위가 한 번에 하나씩만 바뀌기에 한 개의 딕셔너리 내에서 해결 가능 using System; using System.Collections.Generic; public class Solution { public string[] solution(string[] players, string[] callings) { Dictionary dict = new Dictionary(); for(int i = 0; i < players.Length; i++) { dict.Add(players[i], i); } foreach(string call in callings) { int rank = dict[call]; string overtake.. 이전 1 다음