Re: TIB: REAL TOPIC!!!! Working W/lists*


[Prev][Next][Index][Thread]

Re: TIB: REAL TOPIC!!!! Working W/lists*




Larry G Currie wrote:
> 
> Okay, BASIC dudes, solve me this:
> If I have thre lists:
> L1 L2 L3
> 1    0   0
> 2    0   0
> 3    0   0
> 4    0   0
> 5    0   0
> 
> what is the fastest way to take the top NONZERO item from one list and
> put it at the lowest ZERO spot on another.
> eg.
> L1 L2 L3
> 0    0   0
> 0    0   0
> 0    0   0
> 4    1   0
> 5    3   2

What you said is not what you showed on the diagram. Could you be more
precise?

-- 
          Rene Kragh Pedersen
------------------------------------------------------------------
man: Why did you get a divorce?
man:: Too many arguments.


References: