Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

Open
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

mmhossain
Copy link

@mmhossain mmhossain commented May 8, 2025

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).

Copy link
Collaborator

@Destiny-02 Destiny-02 left a 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;
Copy link
Collaborator

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

Copy link
Author

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

Copy link
Collaborator

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.

Copy link
Author

Choose a reason for hiding this comment

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

Done.

Copy link
Author

@mmhossain mmhossain left a 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.

Copy link
Collaborator

@Destiny-02 Destiny-02 left a comment

Choose a reason for hiding this comment

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

see comment

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