posted 7 years ago
Jeanne,
first, thanks for the cow ! Second, your solution is very smart : I studied it a bit , and found another approach using iterate() method to generate the IntStream:
This way, I don't need my helper Counter class anymore. Despite this, your solution it's simply great, thanks for sharing it !