Hello guys , I want to know how do you optimize the runtime memory of a java program? I solved a problem and it took 20100KB , while memory it took for some programmer's code was 0KB .
Also, Is there anyway I could determine the memory usage and time in IntelliJIdea? Thanks in advance :)