Skip to content

Instantly share code, notes, and snippets.

@Caesar-Victory
Created April 4, 2023 18:09
Show Gist options
  • Select an option

  • Save Caesar-Victory/75e5fcae08c25e04bb097515091212ea to your computer and use it in GitHub Desktop.

Select an option

Save Caesar-Victory/75e5fcae08c25e04bb097515091212ea to your computer and use it in GitHub Desktop.
strict weak ordering
#include <iostream>
using namespace std;
int main()
{
auto less = [](int a, int b){
return a >= b;
};
vector<int> array{65,100,29,73,85,1,92,16,95,41,7,33,100,83,40,37,99,9,63,25,62,9,43,55,77,49,62,94,28,82,80,97,55,12,34};
sort(array.sort(), array.end(), less);
cout << "Hello World";
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment