I was recently solving a problem using a vector first but I got MLE (memory limit exceeded). Then I declared an array of maximum size it got accepted in only 64 KiB. So if any of you know about how does memory limit get affected when we declare anything (large size) globally. And how does it affect the memory limit.↵
↵
Code which got MLE — https://www.hackerearth.com/submission/41144649/↵
Code which got AC — https://www.hackerearth.com/submission/41145515/
↵
Code which got MLE — https://www.hackerearth.com/submission/41144649/↵
Code which got AC — https://www.hackerearth.com/submission/41145515/