Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

help on exercises

 
Corinna Sanchez
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm trying to do some sample exercises in Data Structures, but I'm a newbie when it comes to Java language. So, could you help me what to do here? Your expertise will be greatly appreciated.
These examples are:
1) Write a method, L.delete First(),
that deletes the first node of a Linked.List object L.
2) Given a non-null pointer N to a List Node of a list L, and a pointer M to a new ListNode to be inserted, write a Java method to insert the node that is M's referent before the node that is N's referent on list L.
[Hint: Adjust pointers to indert M after N and then swap the airport codes in N and M.]
4-ever greatful-
CS
[ September 11, 2003: Message edited by: Corinna Sanchez ]
 
Faisal Khan
Ranch Hand
Posts: 285
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
here it is... :)
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Corinna,
I am going to close this thread since it is a duplicate post. Please try to refrain from posting duplicate posts in the future. Thanks.
Also, as Bear had mentioned in that other thread, we tend to not do people's homework for them. Not because we don't want to help you learn, that actually is what we want more than anything. And giving you the answers to your homework will not help you learn. Doing it and experience is the greatest education you can have.
Good Luck.
Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic