Bhaiya karna kya hai is question mai ?
MIKE AND HASHTRICK
hello @CODER_JATIN
jo hashing algorithm di ha ,usko samjhna hai aur phir tumhe apna algorithm frame karna hai jo kaam to same kare but givn algrorithm se efficient ho
acha acha . . . . . . . . .
thoda sahi hai . . . .
basically tumko distinct element ko uske last occurence ke basis pe sort karna hai aur phir print
bhaiya ese hi to ho rha hai is code mai, distinct elements ki last occurence map mai store kra rkhi hai, or map hai to key to pehle se hi sorted hogi to -> output sahi ni aani chahiye?
key ke accoridng nahi hame value ke according sort karna hai na. … . . .
ek baar phirse dry run karo agar pattern samjh nahi aaya to
acha acha , smjh gya , krta hu …
or ye “subarrays with distinct elements” ki approach bhi bta do?
ha . . . . . . . . . . . . . . . . . . . . . . .
kaun sa question hai ye? doubt raise karo us problem pe jaake
okay bhaiya , thank yoyu !!
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.