I was trying this problem 840D - Destiny using Mo's algorithm but I got stuck on TLE on test 5 342080782 for using map . Is there any alternative way to solve this problem using Mo's Algorithm?
Need optimization !
I was trying this problem 840D - Destiny using Mo's algorithm but I got stuck on TLE on test 5 342080782 for using map . Is there any alternative way to solve this problem using Mo's Algorithm?