C++ Map Memory Limit Exceeded!

Revision en2, by GlydonNeedsDedication, 2021-12-10 13:54:45

For a practice problem of bitmask in Topic Stream Mashup: Bitwise Operations
( If not opening , click HERE )
I wrote 2 solutions ( Solution1 , Solution2 )
Solution1 is accepted
But Solution2 is showing Memory Limit Exceeded even for testcase1

Can Anyone explain why this happening?

The only change between the two codes is shown here ->
main difference

Tags need help, map

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en3 English GlydonNeedsDedication 2021-12-10 13:56:20 292
en2 English GlydonNeedsDedication 2021-12-10 13:54:45 2 Tiny change: 'ven for textcase1** <' -> 'ven for testcase1** <'
en1 English GlydonNeedsDedication 2021-12-10 13:53:39 1185 Initial revision (published)