Search:

Type: Posts; User: Freaky Chris

Search: Search took 0.07 seconds.

  1. Replies
    6
    Views
    1,348

    Re: Efficiency problem

    if you loop from highVal to highVal/10 for i and the same for j

    you should always come across the largest possible palindrome first.

    Chris
  2. Replies
    6
    Views
    1,348

    Re: Efficiency problem

    I see, I think I may have missed some bits here sorry.

    However, given that you iterate in reverse, starting at max values, that means as soon as you calculate a palindrome, you have the largest...
  3. Replies
    6
    Views
    1,348

    Re: Efficiency problem

    Have you considered counting insteps of 11?

    Chris
Results 1 to 3 of 3