UnfilledDreams's blog

By UnfilledDreams, history, 6 years ago, In English

I was solving a problem but I couldn't solve that problem.
Given an array of N elements, we have to answer Q queries in each query two number i and X will be given we have to find how many multiples of X will be there in the array after the ith (including i) index. The range of N, Q is 10^5 and same for the array elements.
Please help me out with the logic.
Thanks in advance.

Full text and comments »

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

By UnfilledDreams, history, 7 years ago, In English

Guys i'm new in competitive programming can anybody suggest me the best learning sites for data structures and algorithms

Full text and comments »

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