Codenation Interview Question — Help Needed

Правка en1, от kstheking, 2020-07-28 05:28:00

So we had an Interview Question at Codenation, This is the question Image link. I understand that we can do the update node and sum of values through segment trees but what I can't understand is how to find the aith beautiful number, can someone help me out please! Also the constraints of X in the question are below 10^5

Теги #segment-trees, #trees

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский kstheking 2020-07-28 05:44:52 78
en1 Английский kstheking 2020-07-28 05:28:00 435 Initial revision (published)