Jump to content
Sign in to follow this  
MrTea

Apel functie Lista Dubla

Recommended Posts

Salut, stie cineva sa-mi explice cum ar trebui sa fac la exericitil asta de mai jos?

http://prntscr.com/npsp0i

Share this post


Link to post
Share on other sites

Salut,
Daca sa spunem lista ta suporta o functie insert(toInsertValue, afterValue = NULL), unde afterValue reprezinta valoarea dupa care se insereaza (NULL ar insemna sa fie inserat chiar la inceput) si toInsertValue sa fie valoarea pe care o inserezi, ar fi ceva de genu:

L.insert(1);
L.insert(2, 1);
L.insert(3);
L.insert(4, 1);

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×