FAQs on Homework Assignment 2

  • in the bucketsort function, does initializing a variable in a loop like below count as a step?
    for(int i = 0; ...; ...) { ...}

    The answer is "any use of the = to assign a value to a variable." For loop initialization counts as such a use and should be included in your count.
    So make sure you count every asiignment with an = sign as a step.