in reply to I need a help with this one- even don't know how to title this

Can you clarify some details? Imagine we have this situation:
10 15 20 5 30 35 40
Now, R2 gives 10 and R1 gives 50, 25. Should I put 50 into 4th track because of 40, or is 40 already forgotten?

What is the expected output of the program? Should it just return the new status based on R2 and R1 for each step, or should it build a structure representing the whole process?

  • Comment on Re: I need a help with this one- even don't know how to title this
  • Download Code

Replies are listed 'Best First'.
Re^2: I need a help with this one- even don't know how to title this
by baxy77bax (Deacon) on Nov 20, 2011 at 00:05 UTC
    Yes I forgot to mention that, the 40 is forgotten. you always pick from the last array in this example 15 5 35.
    What is the output, well just the updated status after , let say 10 iterations
    sorry, cheers