MLE while using comparator

Revision en2, by jac_nikola, 2021-09-29 00:51:42

PROBLEM LINK

MY CODE LINK

I'm getting MLE on submitting this solution. I suspect it has to do something with the comparators that I've used. I found some relevant information here.

Please help me figure out where exactly it's getting wrong. Thank you.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English jac_nikola 2021-09-29 00:51:42 2 Tiny change: '1551/C) \n[MY CODE' -> '1551/C) \n\n[MY CODE'
en1 English jac_nikola 2021-09-29 00:50:48 463 Initial revision (published)