challenge for programmable calculators
|
12-22-2013, 09:48 PM
(This post was last modified: 12-22-2013 09:49 PM by Katie Wasserman.)
Post: #27
|
|||
|
|||
RE: challenge for programmable calculators
Quote:I was using the symmetry of abc(a+b+c) to bail out early for values ≥ 1000. We can do that since a ≤ b ≤ c. Okay, I see the symmetry that you're using and the partial ordering. But I don't see why you don't need to test for the reverse digit ordering. For example, in 2 4 7 you test if 728 matches 247, but you don't test if 728 matches 742. In looking at the Python code, I don't see that test in there. Am I still not understanding your speedup method or is there a bug in the code? -katie |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 4 Guest(s)