| bolt (13) | |
|
How do I Write a function that takes two linked list as input arguments these linked list contain numbers like this: num1->3->5->2->NULL (assuming that number 1 is 352) num2->4->3->9->1->NULL (assuming that number 2 is 4391) The function should return 1 if num1 points to a linked list which represents a smaller number than the number pointed to by num2 linked list. Otherwise, it returns -1. If both linked list point to exactly the same number, returns a 0. | |
|
|
|
| Darkmaster (494) | |
| are we talking about the std::list? | |
|
|
|
| bolt (13) | |
| yes | |
|
|
|
| tvrameshmc (54) | |||
Use below function. It is written by using std:list
| |||
|
Last edited on
|
|||