### DomainExpansion's blog

By DomainExpansion, history, 13 months ago,

In this problem Your text to link here... i m getting memory limit exceeded error after submitting . I have solved this question in two other ways and may be in this i may get tle even after debugging this . But i m just curious that my map will be not be constructed of more than 10^5 key values ..than why mle ? please help. submitted codeYour text to link here...

• 0

 » 13 months ago, # |   +1 if(m[x]>0){ <-- you insert a new element for every x here
•  » » 13 months ago, # ^ | ← Rev. 2 →   0 Oh ..then every time i will have to check does x belong to map or not ... Thanks