There's an i variable provided for the Hamming Code exercise, but it's not part of the function signature.
It's likely a user might also want an integer i, e.g. as an index to iterate characters as part of a do loop, but they also might want to call it index or ptr or something else equally reasonable.
My suggestion here is to remove it and let students decide their approach.
There's an
i
variable provided for the Hamming Code exercise, but it's not part of the function signature.It's likely a user might also want an integer
i
, e.g. as an index to iterate characters as part of ado
loop, but they also might want to call itindex
orptr
or something else equally reasonable.My suggestion here is to remove it and let students decide their approach.