8 questions. Covers Bad comparator bugs.
Questions 1 to 5 of 8
cpp std::sort(people.begin(), people.end(), [](const Person& a, const Person& b) { return a.age >= b.age; });
age
int
cpp std::sort(v.begin(), v.end(), [](int a, int b) { return a - b; });
a - b
bool
true
a
b
cpp return std::tie(a.size(), a) < std::tie(b.size(), b);
a.size()
std::tie
b - a > 0.1
>
[](int a, int b) { return a > b; }
>=
5 question(s) left on this page.