Please subscribe to the official Codeforces channel in Telegram via the link https://t.me/codeforces_official. ×

ankit_gupta_'s blog

By ankit_gupta_, history, 6 years ago, In English

struct compare { bool operator()(node l, node r) { .... } };

We use above struct in the priority queue to define custom compare function.

Why () operator overloading works?

Thanks in advance..

  • Vote: I like it
  • +3
  • Vote: I do not like it