Book in the works by Alexander Stepanov

Alix Pexton _a_l_i_x_._p_e_x_t_o_n_ at _g_m_a_i_l_._c_o_m_
Mon Sep 8 11:30:58 PDT 2008


Manfred_Nowak wrote:
> Alix Pexton wrote:
> 
>> If I find myself needing to regularly get the nth item from a
>> linked list I would start to ask myself why I was using a list in
>> the first place. 
> 
> What is a "linked list"?
> 
> This question is motivated by your stated incompatibility of the "get 
> the nth item"-operation with a "linked list". I do not see such an 
> incompatibility.
> 
> -manfred
> 
  Of course you can get the nth item from a list, but it is not efficient. There are
other data structures that are more efficient for indexing (usually at the expense
of requiring more space.)

A...


More information about the Digitalmars-d-announce mailing list