CSES — Range Queries problems TLE in python Solution? help me please :)

Revision en1, by majay1638, 2021-01-22 05:59:45

Hi guys, I am trying to solve segment tree question on cses . my Python solution passes only 1 test case and gives me TLE, but c++ solution get accepted, i tried to look online optimize python solution but still no luck , if you can help me to optimize my code it would be great .

problem : https://cses.fi/problemset/task/1648

My code Link : code link



  Rev. Lang. By When Δ Comment
en1 English majay1638 2021-01-22 05:59:45 616 Initial revision (published)