I am getting TLE for this problem (TETRIS3D) while using 2d array.
can any one suggest me how to approa ch this problem ?
This problem requires a 2D segment tree or a similar structure to pass. I assume you are doing a “simulation” on a 2D plane. That will be to slow.
in 2d segment tree update reqiures more time than by using array .In this problem we have all updates and one querry.
which data structure i should use?