TIL

2/24일자 TIL

오딘.L.스트레인지 2026. 2. 24. 20:21

코드카타-카드 뭉치

#include <string>
#include <vector>

using namespace std;

string solution(vector<string> cards1, vector<string> cards2, vector<string> goal) {
    string answer = "";
    int i = 0;
    int j = 0;
    int k = 0;
    for (k = 0; k < goal.size(); k++) 
    {
        if(goal[k] == cards1[i])
        {
            i++;
        }
        else if(goal[k] == cards2[j])
        {
            j++;
        }
        else
        {
            return "No";
        }
    }
    return "Yes";
}

 

팀 프로젝트 근황

오늘은 오류를 잡았는데

그 오류들은

헤더 파일 누락과

중복 정의,

에셋 경로 찾기 실패 오류와 

같은 이름의 컴포넌트 중복 생성이었다.

이제 일사천리로 될 것 같다.

'TIL' 카테고리의 다른 글

2/26일자 TIL  (0) 2026.02.26
2/25일자 TIL  (0) 2026.02.25
2/23일자 TIL  (0) 2026.02.23
2/20일자 TIL  (0) 2026.02.20
2/19일자 TIL  (0) 2026.02.19