도대체 왜 실패가 뜨는지 모르겠습니다
쓰여진글도 다 읽어봤고 이런저런 케이서 넣어서 해도 다 잘 되는데요 ㅠㅠㅠ
실패되는 테스트 케이스 하나만 조언 부탁 드려요
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
public class NewBaseType
{
public string[] solution(string[] sTrs, int nUm)
{
// 받아온 어레이 리스트로 바꾸고 먼저 소팅 (마지막조건위함)
List sTrslist = sTrs.ToList();
sTrslist.Sort();
//정렬기준 생성 (기준만 생성하고 정렬은 안된상태)
List gIjun = new List();
for(int i = 0 ; i < sTrslist.Count; i++)
{
string gIjuneachstr = sTrslist[i][nUm].ToString();
gIjun.Add(string.Format("{0}{1}", gIjuneachstr, i)); //////string.Format 배움 ㅎㅎ
}
//정렬기준과 정렬대상 딕셔너리에 페어링
Dictionary dIction = new Dictionary();
for (int i = 0; i aNswerlist = new List();
for (int i= 0; i< gIjun.Count; i++)
{
aNswerlist.Add(dIction[gIjun[i]]);
}
string[] answer = aNswer_list.ToArray();
return answer;
}
}