Ahha! You've come up with one problem right there...complex input. Simplify, simplify, simplify.
It's common to take several iterations. No one gets the code right the first time. I'm working through a pretty complex problem myself right now and it is taking me ALOT of time.
>Right, I understand. The point is - I have complex input and trying to produce the same output. It is not easy. I also try to make the methods small. This is not simple and requires several iterations.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer