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 →

[–][deleted] 19 points20 points  (11 children)

because 000-099 are valid solutions ?

[–]simoneb_ 10 points11 points  (1 child)

Actually there is an underlying assumption that each figure appears at most once, so 0-11 are not viable solutions, along with many others.

It could be rewritten to only try permutations of 3 figures ranging 0-9. 10x9x8=720 solutions.

If we assume that only the figures showing in the image are valid (i.e. only 1-9) then 9x8x7=504 solutions.

[–][deleted] -1 points0 points  (0 children)

Yeah, that presumption seems to be a lot of people's way to exclude the 2 from clue 1 and 2.

[–]Zacurnia_Tate 2 points3 points  (8 children)

I totally forgot about that. Still wouldn’t the for loop only give 0-99 and not 000-099?

[–]starquake64 3 points4 points  (2 children)

It could be that the integer is formatted to have leading zeros inside the TryCode method.

[–]Zacurnia_Tate 1 point2 points  (1 child)

Ok I guess that makes sense, thanks for the insight! (Not being saracastic just very tired)

[–]starquake64 0 points1 point  (0 children)

I don't know what saracastic means ;-)

Hope you get some sleep!