sort strings by length and by alphabet
bool comp(string a, string b) {
if (a.size() != b.size()) return a.size() < b.size(); // primarily by length
return a < b; //secondarily by alphabetical
}
sort strings by length and by alphabet
bool comp(string a, string b) {
if (a.size() != b.size()) return a.size() < b.size(); // primarily by length
return a < b; //secondarily by alphabetical
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us