回复:thanks for all your inputs.

I learned a lot from the discussion. The algorithm I posted doesn't work at all. It has a big bug.

The calculation for min and max doesn't work at all!

请您先登陆,再发跟帖!