[AlgorithmCodeKata] 2026-03-12 | 문자열 내 마음대로 정렬하기
·
AlgorithmCodekata
1. 의사 코드while문에서 answer에 저장answer 가 변환된 strings와 같아질 경우 break;strings[i][n]을 비교하여 자리를 변경strings[i][n]이 같을경우 sort를 이용하여 사전 순서로 정렬2. 제출 코드#include #include #include using namespace std;vector solution(vector strings, int n) { vector answer; while(true) { answer = strings; for(int i = 1; i strings[i][n]) { string temp = strings[i-1]; ..