-
Notifications
You must be signed in to change notification settings - Fork 86
Added C# solutions for Chapter 3: Linked Lists. #80
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
base: main
Are you sure you want to change the base?
Added C# solutions for Chapter 3: Linked Lists. #80
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @mmhossain, thanks for creating a PR to the Coding Interview Patterns solution repository! 😀 We'd like each language to match the structure of the official Python solutions folder as close as possible. I've left some comments on this PR for how it can better align with the Python solutions.
{ | ||
private readonly int _capacity; | ||
private readonly Dictionary<int, DoublyLinkedListNode> _hashMap; | ||
private readonly DoublyLinkedListNode _head; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please include the DoublyLinkedListNode data structure in this file, since it is part of the solution for this question
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, that makes sense! I have removed this class DoublyLinkedListNode
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you uncomment DoublyLinkedListNode as well please? Just for this file since it is part of the solution for LRUCache.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have remove the types ListNode, DoublyLinkedListNode, MultiLevelListNode from the repo and added necessary type definitions to each solution. Please review it one more time.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see comment
This PR aims to add C# solutions for all the problems from Chapter 3: Linked Lists (including the problems from bonus pdf material with the book).