let's start Code

Compare Function for sorting

Compare Function for sorting:

bool cmp (const pair<int, int> &aa, const pair<int, int> &bb)

{

  if(aa.first != bb.first )

    {

        return aa.first < bb.first;

        }

            else     {

        return(aa.second > bb.second);

    }

}

Share:

No comments:

Post a Comment

About

let's start CODE

Popular Posts