반응형 위장1 [프로그래머스 - 해시] 위장 📄 [해시] 위장 C++ Source Code #include #include #include using namespace std; #define STRING_VECTOR vector #define STRING_PAIR pair int solution(vector clothes) { register int answer = 1; unordered_map clothesMap; // Create Hash Table for (const auto out : clothes) { clothesMap[out.back()].push_back(out.front()); } for (auto begin = clothesMap.begin(); begin != clothesMap.end(); begin++) { const aut.. 2019. 4. 6. 이전 1 다음 반응형