|  | 
|  | 
| back to board | C# and out of memory Posted by Pavel  1 Mar 2021 15:53If you are using C# and running out of memory somewhere at test 36 think how to gracefully call the GC because the heap is full of strings u read from console.Re: C# and out of memory Thanks a lot. I thought that I need to use some other algorithm, because I just created a dictionary with the bill key and  value counter++ then did sorting through the Linq and it's definitely inefficient, but in I still succeeded. I inserted a GC.Collect() for every 1000 iterations of reading and I passed all the tests.
 Edited by author 24.10.2021 18:54
Re: C# and out of memory Posted by Gekcha  29 Aug 2023 01:29Thank you, i get tired of this problem <3 | 
 | 
|