SlideShare a Scribd company logo
Need help finishing this doubly linked list code.
Commented lines are what's needed, also add the following recursive methods:
findFirstNodeWithValue() and getDisplayString() that returns a string containing the strings in
the list separated by spaces
Code in C# language only, please.
internal class DoubleLinkedList {
public DoubleLinkedListNode? firstNode = null;
public DoubleLinkedListNode? lastNode = null;
public DoubleLinkedListNode? currentNode = null;
// other class level variables needed?
public DoubleLinkedList() {
// creates first node in list with firstValue
}
public DoubleLinkedList(string firstValue) {
// methods and features to add:
// get current node reference
// insert node before first
// delete first node
// insert node after last
// delete last node
// insert node after current - uses multiple methods
// delete current
// move current to next node
// move current to previous node
// recursive: find node with value - return reference or null
// recursive: get display string
}
}
/*******************************
* double Linked List Node - needs to be made generic
* class is incomplete
* *****************************/
internal class DoubleLinkedListNode {
public string? value = null;
public DoubleLinkedListNode? nextNode = null;
public DoubleLinkedListNode? previousNode = null;
public DoubleLinkedListNode(string v) {
value = v.ToLower();
}
private DoubleLinkedListNode() {
value = null;
}
}

More Related Content

DOCX
I need help coding a doubly linked list from this unfinished code- Eve.docx
DOCX
C++ Please write the whole code that is needed for this assignment- wr.docx
PDF
Need done for Date Structures please! 4-18 LAB- Sorted number list imp.pdf
PDF
In the class we extensively discussed a node class called IntNode in.pdf
PDF
need this program in java please and thanks!NOTICE There are NO s.pdf
PDF
Sorted number list implementation with linked listsStep 1 Inspec.pdf
PDF
In C++ please, do not alter node.hStep 1 Inspect the Node.h file.pdf
PDF
Inspect the class declaration for a doubly-linked list node in Node-h-.pdf
I need help coding a doubly linked list from this unfinished code- Eve.docx
C++ Please write the whole code that is needed for this assignment- wr.docx
Need done for Date Structures please! 4-18 LAB- Sorted number list imp.pdf
In the class we extensively discussed a node class called IntNode in.pdf
need this program in java please and thanks!NOTICE There are NO s.pdf
Sorted number list implementation with linked listsStep 1 Inspec.pdf
In C++ please, do not alter node.hStep 1 Inspect the Node.h file.pdf
Inspect the class declaration for a doubly-linked list node in Node-h-.pdf

Similar to Need help finishing this doubly linked list code- Commented lines are.docx (20)

PDF
could you implement this function please, im having issues with it..pdf
PDF
Using visual studio 2022- a C# windows form application- and your Doub.pdf
PDF
C++ Doubly-Linked ListsThe goal of the exercise is to implement a.pdf
PDF
Ruby Programming Assignment Help
PDF
Ruby Programming Assignment Help
PDF
This assignment and the next (#5) involve design and development of a.pdf
DOCX
Write a C++ function that delete nodes in a doubly linkedlist- It shou.docx
PDF
Need to be done in C Please Sorted number list implementation with.pdf
PDF
C++ Background Circular Linked List A circular linked list.pdf
PDF
write recursive function that calculates and returns the length of a.pdf
PDF
Assignment isPage 349-350 #4 and #5 Use the Linked List lab.pdf
PDF
Need to be done in C++ Please Sorted number list implementation wit.pdf
PPTX
C Exam Help
PPTX
Abstract Base Class and Polymorphism in C++
PPT
Csharp4 generics
PDF
Background Circular Linked List A circular linked list is .pdf
PPTX
Notes(1).pptx
PPTX
C Homework Help
PDF
Need Help!! C++ #include-iostream- #include-linkedlist-h- using namesp.pdf
PDF
Write a program to implement below operations with both singly and d.pdf
could you implement this function please, im having issues with it..pdf
Using visual studio 2022- a C# windows form application- and your Doub.pdf
C++ Doubly-Linked ListsThe goal of the exercise is to implement a.pdf
Ruby Programming Assignment Help
Ruby Programming Assignment Help
This assignment and the next (#5) involve design and development of a.pdf
Write a C++ function that delete nodes in a doubly linkedlist- It shou.docx
Need to be done in C Please Sorted number list implementation with.pdf
C++ Background Circular Linked List A circular linked list.pdf
write recursive function that calculates and returns the length of a.pdf
Assignment isPage 349-350 #4 and #5 Use the Linked List lab.pdf
Need to be done in C++ Please Sorted number list implementation wit.pdf
C Exam Help
Abstract Base Class and Polymorphism in C++
Csharp4 generics
Background Circular Linked List A circular linked list is .pdf
Notes(1).pptx
C Homework Help
Need Help!! C++ #include-iostream- #include-linkedlist-h- using namesp.pdf
Write a program to implement below operations with both singly and d.pdf
Ad

More from Jason0x0Scottw (20)

DOCX
A company's stock price rose 3-4- in 2011 - and in 2012 - it increased.docx
DOCX
A company has the following- Dec- 1 Beginning inventory 15 units at $6.docx
DOCX
A company must perform a maintenance project consisting of seven activ.docx
DOCX
A company has paid out all its current and accumulated earnings a prof.docx
DOCX
New Public Management- clearly provide the following- (1) establish th.docx
DOCX
New Corporation- a C corporation- had the following items for the curr.docx
DOCX
networking networking Which of the following Topologies are available.docx
DOCX
Neighborhood Effects 1- What is the neighborhood effect- 2- How to ide.docx
DOCX
need help with filling out the results table!! ( provided pictures of.docx
DOCX
need help with both please Methanogens are a group of archaea that ge.docx
DOCX
Need help getting past an error in C++! I have all my code pasted down.docx
DOCX
Narrow visible light emission Below left is a familiar visible-light v.docx
DOCX
Name the three major hormones produced by thyroid tissues and give spe.docx
DOCX
Name the type and tunics of blood vessels and the major tissue typers).docx
DOCX
name it Provide the names of Bone A and Bone D.docx
DOCX
name it Provide the name of Letter A - Letter B and Letter C Be sure t.docx
DOCX
Name and define each component of the preparedness cycle- What is a HV.docx
DOCX
DOCX
Myopia (nearsightedness) Rays focus in front of retina Concave lens co.docx
DOCX
My daughter needs help with this please clear detail please would be h.docx
A company's stock price rose 3-4- in 2011 - and in 2012 - it increased.docx
A company has the following- Dec- 1 Beginning inventory 15 units at $6.docx
A company must perform a maintenance project consisting of seven activ.docx
A company has paid out all its current and accumulated earnings a prof.docx
New Public Management- clearly provide the following- (1) establish th.docx
New Corporation- a C corporation- had the following items for the curr.docx
networking networking Which of the following Topologies are available.docx
Neighborhood Effects 1- What is the neighborhood effect- 2- How to ide.docx
need help with filling out the results table!! ( provided pictures of.docx
need help with both please Methanogens are a group of archaea that ge.docx
Need help getting past an error in C++! I have all my code pasted down.docx
Narrow visible light emission Below left is a familiar visible-light v.docx
Name the three major hormones produced by thyroid tissues and give spe.docx
Name the type and tunics of blood vessels and the major tissue typers).docx
name it Provide the names of Bone A and Bone D.docx
name it Provide the name of Letter A - Letter B and Letter C Be sure t.docx
Name and define each component of the preparedness cycle- What is a HV.docx
Myopia (nearsightedness) Rays focus in front of retina Concave lens co.docx
My daughter needs help with this please clear detail please would be h.docx
Ad

Recently uploaded (20)

PPTX
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
PPTX
Cell Structure & Organelles in detailed.
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PDF
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
PDF
RMMM.pdf make it easy to upload and study
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PDF
Microbial disease of the cardiovascular and lymphatic systems
PDF
Computing-Curriculum for Schools in Ghana
PDF
01-Introduction-to-Information-Management.pdf
PDF
Complications of Minimal Access Surgery at WLH
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PPTX
Lesson notes of climatology university.
PPTX
Cell Types and Its function , kingdom of life
PPTX
Pharma ospi slides which help in ospi learning
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PPTX
202450812 BayCHI UCSC-SV 20250812 v17.pptx
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
Cell Structure & Organelles in detailed.
102 student loan defaulters named and shamed – Is someone you know on the list?
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
RMMM.pdf make it easy to upload and study
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
FourierSeries-QuestionsWithAnswers(Part-A).pdf
Microbial disease of the cardiovascular and lymphatic systems
Computing-Curriculum for Schools in Ghana
01-Introduction-to-Information-Management.pdf
Complications of Minimal Access Surgery at WLH
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
Lesson notes of climatology university.
Cell Types and Its function , kingdom of life
Pharma ospi slides which help in ospi learning
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
202450812 BayCHI UCSC-SV 20250812 v17.pptx
Supply Chain Operations Speaking Notes -ICLT Program
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf

Need help finishing this doubly linked list code- Commented lines are.docx

  • 1. Need help finishing this doubly linked list code. Commented lines are what's needed, also add the following recursive methods: findFirstNodeWithValue() and getDisplayString() that returns a string containing the strings in the list separated by spaces Code in C# language only, please. internal class DoubleLinkedList { public DoubleLinkedListNode? firstNode = null; public DoubleLinkedListNode? lastNode = null; public DoubleLinkedListNode? currentNode = null; // other class level variables needed? public DoubleLinkedList() { // creates first node in list with firstValue } public DoubleLinkedList(string firstValue) { // methods and features to add: // get current node reference // insert node before first // delete first node // insert node after last // delete last node // insert node after current - uses multiple methods // delete current // move current to next node // move current to previous node // recursive: find node with value - return reference or null // recursive: get display string } } /******************************* * double Linked List Node - needs to be made generic * class is incomplete * *****************************/ internal class DoubleLinkedListNode { public string? value = null; public DoubleLinkedListNode? nextNode = null; public DoubleLinkedListNode? previousNode = null; public DoubleLinkedListNode(string v) { value = v.ToLower(); }