No one has replied
Any reason for downvote?
what's the advantage of const auto& compared to just auto?
I just begin to read the problem and i am finding a better way to solve it beacause the way i improve yours resolution later just beat people of 80%.
agree, it makes no sense this solution beats 99.90% others. We need more reasonable test case.
I use the same function .replace()
but the result is "Time Limit Exceeded "
Can you give me any suggestion?
@jianchao.li.fighter This solution is awesome,thanks a lot for your soln :)
my bad! I copied-pasted the same code two times. I correct it now. Thanks!
@ttsou i want know if the Initial value of map<char,int>'s int is same? and what initial value of map<char,int>.
Yaa you dont need group the strings differently. Just push it to a vector without considering string belonging to different groups.....
Similar idea to calculate hash out of counts, although this code is incredibly slow for reasons that befuddle me:
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.