leetcode

Solution to some Leetcode problems written in C++
git clone git://git.dimitrijedobrota.com/leetcode.git
Log | Files | Refs | README | LICENSE

2545.cpp (264B)


0 class Solution {
1 public:
2 vector<vector<int>> sortTheStudents(vector<vector<int>> &score, int k) {
3 sort(score.begin(), score.end(),
4 [k](const vector<int> &a, const vector<int> &b) { return a[k] >= b[k]; });
5 return score;
6 }
7 };