Saturday, September 12, 2020

C# LinkedListNode Class: First time I learn the class

 Sept. 12, 2020

Introduction

It is my first time to learn C# LinkedListNode<T>. I need to learn how to write using C# LinkdList and LinkedListNode to write a double linked list. But through my past practice I wrote my own double linked list. 

10 minutes to read C# LinkedListNode<T>

I don't know how to specify a double linked list in C#, I do believe that I should declare LinkedListNode<T> and also LinkedList, I will figure out. 

Leetcode LRU - C# solution I wrote in May 2019 first time. But I did not have time to write using existing C# LinkedList and understand the double linkedlist can be implemented. The discussion post was added after May 2019 using LinkedListNode. 

Sample code

I have to be able to train myself in 10 minutes to read C# code, and then understand the design. 

Here is the gist of C# code. Here is the page. 




No comments:

Post a Comment