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

sort and reverse

Revision en3, by SHAHARIAR_ISLAM_SAKIB, 2024-07-10 09:20:26

sort(v.begin(),v.end(),greater ()); OR sort(v.rbegin(),v.rend()); OR sort(v.begin(),v.end()); reverse(v.begin(),v.end()); All these are the same

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)