Question
please help me fix this add method for my soreteddoublylinked list class as it is supposed to do as it suggests but i cant get
please help me fix this add method for my soreteddoublylinked list class as it is supposed to do as it suggests but i cant get it right what am i doing wrong?
/**Inserts the specified element at the correct position in the sorted list. * Notice we can insert the same element several times. * Your implementation must traverse the list only once in order to perform the insertion. * Do not implement this method using iterators. * Notice that you don't need to call any of the super class methods in order to implement this method. * @param data -the data to be added to the list * @return a reference to the current object */ public SortedDoubleLinkedList
Node
}
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started