Pair<> sorting

PHOTO EMBED

Sun May 26 2024 11:56:56 GMT+0000 (Coordinated Universal Time)

Saved by @ayushg103 #c++

bool cmp(pair<int,int> a,pair<int,int> b)
{return a>b;}
sort(p.begin(),p.end(),cmp);
content_copyCOPY