Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

20 gabrielvictorcf rust linked list solutions #22

Merged
merged 7 commits into from
Nov 1, 2022
Merged

20 gabrielvictorcf rust linked list solutions #22

merged 7 commits into from
Nov 1, 2022

Conversation

gabrielvictorcf
Copy link
Contributor

This PR closes issue #20 with tested solutions.

Again, we have some answers here that do not have a leetcode counterpart, as their linked list implementation does not allow for cycles or intersections. In these problems, i changed the next node definition to the Option<Rc<RefCell<ListNode>>> type - which'll allow for an implementation on these problems. Likewise, i also implemented some test cases to assert the implementation compiles and works.

Copy link
Owner

@gosiqueira gosiqueira left a comment

Choose a reason for hiding this comment

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

All good.

@gosiqueira gosiqueira merged commit 2d2be3f into gosiqueira:main Nov 1, 2022
gosiqueira pushed a commit that referenced this pull request Nov 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants