You are given real numbers a1,a2,…,aN, each at least 0 and less than 1. Split the interval [0,1) into m subintervals of length L=1/m and name them b1,b2,…,bm from left to right.
- b1: 0≤x<L
- b2: L≤x<2L
- …
- bm: (m−1)L≤x<1
Count how many of the given numbers fall into each subinterval.