manik.jain's blog

By manik.jain, history, 3 years ago, In English

Quite a tricky problem I was stuck on trying to solve. Would appreciate some help on how to approach it.

Given an array, compute the number of subarrays with a mean = k

1 <= n <= 1e5

1 <= a[i], k <= 1e9

Thanks!

Full text and comments »

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