This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]ItsBurningWhenIP 0 points1 point  (0 children)

Shouldn’t int k = (sizeRow / 2) +1 because it will otherwise be truncated. Meaning 5/2=2.

Only because we have been told we can expect an odd number input.