Custom Comparator (C++)

Revision en1, by Electron, 2021-03-17 07:14:55

Ofcourse there are a lot of blogs about custom comparators on internet but what I find is most of them don't talk about the precautions which one must take while using them in solving questions. I encountered quite a bit difficulty in using it to solve this problem. Do give it a try!!

So lets start with the very basic syntax of writing a custom comparator:

Your code here...
Tags #multiset, #set

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en7 English Electron 2021-03-17 08:50:43 19
en6 English Electron 2021-03-17 08:48:06 19
en5 English Electron 2021-03-17 08:25:39 215 Tiny change: ' answer)** Such weir' -> ' answer)**. Such weir'
en4 English Electron 2021-03-17 08:13:54 7 (published)
en3 English Electron 2021-03-17 08:12:15 44
en2 English Electron 2021-03-17 08:07:16 3059
en1 English Electron 2021-03-17 07:14:55 514 Initial revision (saved to drafts)