in reply to Challenge: Letter Power Revisited (Brute Force)
in thread Challenge: Letter Power Revisited

You might want to give sizes to the arrays cat1 - cat10. At present, you are writing all over memory that you don't intend to.

G. Wade

Replies are listed 'Best First'.
Re^2: Challenge: Letter Power Revisited (Brute Force)
by Limbic~Region (Chancellor) on Apr 20, 2009 at 18:15 UTC
    gwadej,
    Thanks. I actually have some very bad perl that generates very naive C. Since the perl can know at runtime the number of elements, it does provide sizes. I didn't want the post to be about my lack of knowledge of C so I shared it as a blank template so that those who wanted to could modify it appropriately.

    Cheers - L~R