If we have a list:
Code:
and I am trying to repeat the values to fill the remaining values, like so:
Code:
how would I do that? Here is my current algorithm:
Code:
It has some kind of logical error, it doesn't really do anything to the two lists' values.
Please help, I don't know if I have explained this very well but if I have not I can elaborate.
-Silverwings11
Code:
ʟ1
{1,2,3,0,0}
and I am trying to repeat the values to fill the remaining values, like so:
Code:
ʟ2
{1,2,3,1,2}
how would I do that? Here is my current algorithm:
Code:
dim(ʟ2)→dim(ʟ1)
For(X,1,dim(ʟ2)-dim(ʟ1)
ʟ1(X-dim(ʟ1+1)→ʟ1(X)
End
It has some kind of logical error, it doesn't really do anything to the two lists' values.
Please help, I don't know if I have explained this very well but if I have not I can elaborate.
-Silverwings11