Alternate signs in a range

matovitch camille.brugel at laposte.net
Sun Jan 26 06:24:34 PST 2014


On Sunday, 26 January 2014 at 14:13:28 UTC, Stanislav Blinov 
wrote:
> On Sunday, 26 January 2014 at 13:45:32 UTC, matovitch wrote:
>
>> Anyway, the proposed solutions use twice much memory than a 
>> simple for loop...
>
> ???
>

Well in a for loop, you only need one more index variable whereas 
here we store the whole index range.


More information about the Digitalmars-d-learn mailing list