-
Notifications
You must be signed in to change notification settings - Fork 0
전화번호 목록 #399
Copy link
Copy link
Closed
Description
#include <string>
#include <vector>
#include <algorithm>
using namespace std;
bool solution(vector<string> phone_book) {
sort(phone_book.begin(), phone_book.end());
for (int i = 0; i < phone_book.size() - 1; i++) {
if (phone_book[i + 1].find(phone_book[i]) == 0) {
return false;
}
}
return true;
}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Projects
Status
Done