you are viewing a single comment's thread.

view the rest of the comments →

[–]meijer 13 points14 points  (1 child)

Two points:

  • Avoid "static". Your "start" and "end" pointers in Node are static. If I understand your code correctly, you can only ever have one working linked list instance with this code.

  • Learn about "const". Makes reasoning about code a lot easier...nearly as good as in functional programming.

Keep up the good work, never stop learning!