Python weird memory limit exceeded

Правка en3, от dsanurag520, 2024-04-29 16:18:18

This is the problem

This is my solution

I think my solution matches some of the answers given by some grandmasters. However I am not able to figure out the reasons for getting MLE. I have only 3 lists of length 200000 each and I am sure this is not the reason for MLE.

If anyone can guide me it would be nice.

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en3 Английский dsanurag520 2024-04-29 16:18:18 40 Tiny change: 'r MLE.\n\n' -> 'r MLE.\n\nIf anyone can guide me it would be nice.'
en2 Английский dsanurag520 2024-04-29 16:17:03 20
en1 Английский dsanurag520 2024-04-29 16:16:31 434 Initial revision (published)