2 responses to “How Much I Rely on Class Libraries”

  1. ryan

    I have to admit, that method was a little confusing to figure out. It’s kind of a weird way to have you solve the problem (using div and mod) but I guess the point was to learn how those two operators work. One thing I noticed was that i is never used for anything meaningful. Other than that, great job. I’m happy to see more Neumont students blogging.

  2. jsight

    It was confusing to me as well. Part of my confusion came from calling “Convert.ToInt32(input)” in each iteration of the loop when not actually changing the string.

    That’s a pet peeve of mine. :) If the result of calling the (marginally expensive) parse function never changes, just call it once before the loop.

    Anyway, I know what you mean about forgetting basic algorithms. It took me way longer to read that than it should have.

Leave a Reply