Question

Open data structures in C++ please Exercise 3.2 Design and implement an SLList method, secondLast(), that...

Open data structures in C++ please

Exercise 3.2 Design and implement an SLList method, secondLast(), that returns the second-last element of an SLList. Do this without using the member variable, n, that keeps track of the size of the list.

3.3 Implement the List operations get(i), set(i,x), add(i,x) and remove(i) on an SLList. Each of these operations should run in O(1+ i) time.
0 0
Add a comment Improve this question Transcribed image text
Know the answer?
Add Answer to:
Open data structures in C++ please Exercise 3.2 Design and implement an SLList method, secondLast(), that...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT