Quote:Original post by ToohrVykQuote:Original post by doctorsixstring
I doubt the Python code is any faster, but I think it is significantly easier to read and understand (no offense to pascalosti or ToohrVyk ).
I certaintly won't disagree with that! C++ is often a very bad idea for small-to-medium problems such as this one, and sometimes a bad idea for larger problems as well.
While we're at it:
*** Source Snippet Removed ***
Out of curiosity, what language is that? I don't recognise it at all. It looks like a functional language, at a guess...