[Gambas-user] One for the data scientists and mathematicians here
jussi.lahtinen at gmail.com
Fri Jun 16 22:04:34 CEST 2023
O(n) when you simply add value from the linked list to an array (repeat
until last index / link) or vice versa.
I have a feeling that is not what you asked for.
On Fri, Jun 16, 2023 at 3:03 PM BB <adamnt42 at gmail.com> wrote:
> Sometimes arrays are better than linked lists and vice versa depending
> on what you are trying to do with the bag of things you have.
> But is there an efficient (big O) way to convert the one to the other
> and back?
> Not much information I know but the intertubes (and even Knuth) seem to
> be silent on this.
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the User