79166501

Date: 2024-11-07 12:51:40
Score: 3
Natty:
Report link

OK, I think I found my mistake. The key is in lines.c/writeLines(). The growth condition is capacity < count + 1, but my count increases like 1, 3, 5, 7. When it reaches 7, the array should grow because we've reached the end of the array. Therefore, it should be "<=" instead of "<".

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: user22873067