How to split number based on frequency

Hi,

FYI, another solution

if you need int32 array, the following works.

(New String(" "c,number)).Chunk(freq).Select(Function(x) x.length).ToArray()

Regards,

2 Likes