get passed part 2 without running out of RAM? 😂
I am storing each fish in a vec of one u8, and a bool. the u8 stores their cycle, and bool is true if the fish is eligible to reproduce. This vec grows like hell over 3GB+ till my small 4GB RAM PC starts hanging😂
You gonna need a hell of memory if you try brute force it A rough calculation is 300*2.pow(256/7) / 1024/1024/1024=19200G memory
Обсуждают сегодня