Please read the new rule regarding the restriction on the use of AI tools. ×

sort and reverse

Revision en2, by SHAHARIAR_ISLAM_SAKIB, 2024-04-17 03:42:11

sort(v.begin(),v.end(),greater ()); it is same as sort(v.begin(),v.end()); reverse(v.begin(),v.end());

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en3 English SHAHARIAR_ISLAM_SAKIB 2024-07-10 09:20:26 67
en2 English SHAHARIAR_ISLAM_SAKIB 2024-04-17 03:42:11 2 Tiny change: '(),greater<int>());\' -> '(),greater <int>());\'
en1 English SHAHARIAR_ISLAM_SAKIB 2024-04-17 03:38:33 132 Initial revision (published)