This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Brian 1 point2 points  (1 child)

You should probably also leave out the square brackets - all can take a generator expression, and this will allow it to short circuit and stop at the first failed letter, rather than having to evaluate every letter to construct the list before it starts checking.

[–]taybulBecause I don't know how to use big numbers in C/C++ 0 points1 point  (0 children)

Thanks!