vishwas_007's blog

By vishwas_007, history, 2 years ago, In English

Hi people, I just learnt about segment tree and did this problem. It involves alternate OR and XOR operations to obtain final result. My python solution(time complexity -> O(nlogn)) runs fine with smaller number in the array(see Test: #7) but as the numbers grow, I am getting TLE. Can anyone tell, how I can overcome this?

Full text and comments »

  • Vote: I like it
  • +3
  • Vote: I do not like it