Skip to content

Conversation

@JBoshart
Copy link

Thanks, Crystal! This was a fun problem to solve. I hope my solutions work correctly!

while current.next_node != nil
count += 1
current = current.next_node
end

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What will get returned here if the LinkedList has 0 nodes?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants