manik.jain's blog

By manik.jain, history, 22 months 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


Full text and comments »

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