Histogram - LOJ November 16, 2021 It's a well-known problem and the well-known solution is using a stack. I tried to solve it by segment tree(iterative version for building tree) and got TLE. Hope I can optimize the code. TLE CODE Share Get link Facebook X Pinterest Email Other Apps Labels histogram loj segment tree(iterative) Share Get link Facebook X Pinterest Email Other Apps Comments
Comments
Post a Comment