3 Replies - 505 Views - Last Post: 28 March 2009 - 04:09 PM Rate Topic: -----

#1 muhaded  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 27-March 09

help me up! guys...

Posted 27 March 2009 - 02:09 AM

1) Given a linked list of integers sorted in an ascending order, and a pointer to a single node containing an integer, write a C program that insert the node P in the linked list so that it remains sorted.

Posted Image



2) Given two null terminated linked lists, combine their nodes so that the nodes of the new list alternate between those of the two original nodes.

Note: Do not allocate any new nodes.

Posted Image

Is This A Good Question/Topic? 0
  • +

Replies To: help me up! guys...

#2 BetaWar  Icon User is offline

  • #include "soul.h"
  • member icon

Reputation: 1147
  • View blog
  • Posts: 7,134
  • Joined: 07-September 06

Re: help me up! guys...

Posted 27 March 2009 - 08:27 AM

Dream.In.Code has a policy by which we prefer to see a good faith effort on your part before providing source code for homework assignments. Please post the code you have written in an effort to resolve the problem, and our members would be happy to provide some guidance. Be sure to include a description of any errors you are encountering as well.

Post your code like this: :code:

Thanks.
Was This Post Helpful? 0
  • +
  • -

#3 BigAnt  Icon User is offline

  • May Your Swords Stay Sharp
  • member icon

Reputation: 101
  • View blog
  • Posts: 2,392
  • Joined: 16-August 08

Re: help me up! guys...

Posted 27 March 2009 - 09:58 AM

Quote

write a C program


And also post in the correct forum for your language
Was This Post Helpful? 0
  • +
  • -

#4 alien_programmer  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 5
  • Joined: 28-March 09

Re: help me up! guys...

Posted 28 March 2009 - 04:09 PM

Hi, i recommend you keyboard it (make the programm with pointers) and we can help you more !, this is not hard...only wirte a good diagram or algorithm in a notebook and implement it, if you get a problem you can post you code here and we will help you. (You can view the code for linked list in books of programming in C/C++, like Deitel & Deitel).

This post has been edited by alien_programmer: 28 March 2009 - 04:10 PM

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1