Can you explain the algorithm please ? I didn’t completely get mishraanoopams.
I can’t really explain it much better than his original post + my code It uses one of the techniques from CAMC.
3 Likes
Got it…
2 Likes
hackerearth is so stupid that it asks same question again and again, i couldn’t blame above person who asked this question from an on going hiring event but still its fault of hackerearth.
3 Likes
LOL I really saw this que before and hence I answered this post.
2 Likes