Another cool mini-project: advance a range within n steps from its end

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Sat Dec 5 12:52:23 PST 2015


On 12/05/2015 11:22 AM, Sebastiaan Koppe wrote:
>
> What about using a rangified circular buffer of the same size you want
> the tail to be, and lazily fill it?

That's O(n) space :o). -- Andrei


More information about the Digitalmars-d mailing list