
Matthew K. answered 06/29/22
B.A. in Computer Science, Swarthmore College
This is the type of problem which is intended to assess your ability to translate high-level concepts such as vectors into language-level implementations. As tutors, it's not in our power to do that for you, but we can help you do that for yourself.
One of the first steps I use in this type of problem (a Class Implementation problem) is to list what kinds of attributes and methods the class should have. In other words, go through the definition of the class outlined in the assignment and take note of what is information that should be stored and what is functionality that should be allowed. Next, go through these notes and determine which of the items should be accessible to someone who declares a MyLinkedList object (what should be public) and which of the items should not be accessible to someone who declares a MyLinkedList object (what should be private).
After this, begin implementing each item that you've identified, implementing additional private methods and private variables as needed. If you run into issues, or you don't know how to continue (and if it's allowed by your instructor) consult C++ Documentation, of which there are multiple sources. I usually use C++ Reference, which is a very comprehensive, wiki-style source that describes in detail the features of C++ standards from C++98 to the present. In addition, keep in mind how you would test and debug this problem, either using a testing library like Boost C++ or some other library provided by your instructor, or by simultaneously writing a short, simple program that uses the class you've implemented.
In general, I would advise against posting problems verbatim from your courses. This is likely against academic policy and could get you in trouble with the organization that is providing your education. Instead, try out the problem on your own, and post questions when you run into problems, or ask about how to start solving problems if you're having trouble with getting started. That will not only allow you to improve your own ability to write code, it will also enable us to provide you with more thorough and specific assistance.