News for hackers. Stuff that matters.
Re:Supercolliding a PHP array (inserting 65536 elements take... by kmm on Thursday December 29, 2011 @09:57AM (#3403807)
Of course! I hadn't considered that inserting an element can mean updating an already existing element.

In C you don't need a pointer to the last element though, you can just replace the pointer to the first element with the new element and put the old pointer in the "next" field of the new element. I usually implement stacks this way.

There are no comments on this comment yet.