To simplify many functions: Node getNode(int idx); // code first and private int _length; // maintain throughout --- interface object LinkedList.remove(int idx); //should throw an exception instead of returning null -- or -- the sig should be bool remove(int idx, out object o); which does nada to o when out of bounds -- bool replace(int idx, object oNew, out oOld); and you also forgot the major function: LinkedList append(LinkedList l); // return this
I noticed that the getEntry function in the LinkedList class will always return the first node since you just call the getNextNode function and not assign it's return value to currentNode.
But other than that I was surprised that it was this easy.
mindprism 11 months ago
thank you very much for this video
I really love it.
this teaches me a lot.
and congcrat for being a partner. This is much better when you can upload 20 minute video.
to remind you this is how to write getter and setter: public int Id { get; set;}
domaine75atutube 1 year ago
thank you very much for this video
I really love it.
this teaches me a lot.
and congcrat for being a partner. This is much better when you can upload 20 minute video.
domaine75atutube 1 year ago
I noticed that the getEntry function in the LinkedList class will always return the first node since you just call the getNextNode function and not assign it's return value to currentNode.
But other than that I was surprised that it was this easy.
Thanks.
riddion2 1 year ago
Kinda off-topic but, are you a partner? Cause this video is 24 minutes long
daoping 1 year ago
@daoping Yeah I was recently accepted into the partner program, all thanks to my viewers and subscribers!
QuackWare 1 year ago 2