About the Mike and Hashtrick qstn

I didn’t understand the qstn and how to solve it

hello @Senjuti256

the algorithm is already given to u.
now what u have to do is u need to observe what the given algorithm is doing and then u need to right ur own logic/alogorithm better than given one to pass all test cases.

check this for clarity->

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.