so when we are storing its sorted form in a map so does it means map will consider “eat” and “aet” as same despite of the fact that the letters in “eat” and “aet” are not in same order.
HashMap contains method
hellop @dheerajmishra992
no ,
by sorted order we mean that keys are stored in lexicographically order.
here if our keys are eat and aet then they are stored as
“aet” , “eat” (aet comes first because it is lexicographically smaller than eat)
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.