I’m facing issues with the output. I guess there’s some problem with the indexing but I’m not able to debug it. Please help me out.
Unlock - Hashing
hello @gambhirrahul0
there is a logical mistake.
u have to replace preferred pos with the current position(which is m[i] )
but u r replacing preferred positon with i-1 th position
Will you please help me out with the corrected code? I’m confused
Thanks. I’m closing the doubt
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.