Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I was just saying M+N ≠ M×N, and that solutions that forces M×N are bogus.

Agreed. I was clarifying that converting your code to use visitors does not force an order of magnitude increase in the amount of code. If you start out with O(M+N) without visitors, you'll still have O(M+N) code after converting to visitors. Although, visitors are generally better appreciated when managing O(M*N) code than when managing O(M+N) code.



Yep.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: