Help Needed: Why Am I Getting TLE on This Problem?

Revision en1, by Jesse_Pinkman_bch, 2024-12-30 20:01:24

Hi everyone,

I’m working on a problem where my solution isn’t getting Accepted (AC), and I’m struggling to figure out why. The time limit is 3 seconds so ideally even n^2 should pass . As far as I think my code is somewhat around O(n+mlogm) . Problem Link

Looking for positive response :) submission id --> 299093047 My code

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English Jesse_Pinkman_bch 2024-12-30 20:01:24 498 Initial revision (published)