Hi everyone,
I have done this question previously using sorting and today i tried with using maps.
Everything seems correct in my code but still i got Wrong Answer
Please see and point out the mistake in my code.
and i heard that the way maps keep the strings sorted is O(n^2) … is this true?
then in which situations maps are useful?