CSES Problem Set — Distinct Values Queries — TLE

Revision en1, by bati06, 2020-08-31 20:41:37

Hi,

I've tried to solve the CSES — Distinct Values Queries problem based on this StackOverflow answer.

Unfortunately I got TLE for my solution.

Can you guys help me, why I get TLE?

Tags #cses, #segment tree, #segmenttree

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English bati06 2020-08-31 20:44:40 13 Tiny change: 'Hi,\n\nI've ' -> 'Hi Everyone,\n\nI've ' (published)
en1 English bati06 2020-08-31 20:41:37 360 Initial revision (saved to drafts)