I implemented it by using arraylist. I sorted the trucks according to the
free space and when a load comes I iterated till the point, say j where I
find a suitable space and then sorted it with the elements till j. I want
to know if I can optimize it even further if possible. I want to know if
there a best possible solution than what I implemented?

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to