Answer to Question #288622 in C++ for omy

Question #288622

class Node{





public:





int data;





Node * next;





};





class LinkedList{





private:





Node * head;





public:





Node * head;





void insert(int value);





void delete(int value);





void reverse();





};






Note:





No global declarations 





Run test the functions in main






Task:





Make a stack with no duplicate elements.





Keeping in mind the above class exists.


1
Expert's answer
2022-01-18T17:22:24-0500
class Node{
public:
int data;
Node * next;
};
class LinkedList{
private:
Node * head;
public:
Node * head;
void insert(int value);
void delete(int value);
void reverse();
};

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment