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

sort and reverse
Difference between en2 and en3, changed 67 character(s)
sort(v.begin(),v.end(),greater <int>());↵
it is same as 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)