I am trying problem [BOMBING] using java but getting TLE. My approach is as follows:-
store all queries first
compress all room nos using a treemap
process the queries. Perform point update, range query BIT operations using the compressed value of nos.
Here’s my code - [link]