14 Node * previous = headptr1;
15 if (previous !=
nullptr) {
16 if (previous->
value < input) {
17 while (previous->
nextptr !=
nullptr) {
26 current->
value = input;
32 headptr1->
value = input;
41 headptr1->
value = input;
51 istringstream line_in(line);
60 while (line_in >> input) {
69 Node * current_node = headptr1;
70 while (current_node !=
nullptr) {
71 cout << current_node->
value;
72 current_node = current_node->
nextptr;
73 if (current_node ==
nullptr) {
83 Node * current = headptr1;
84 while (current !=
nullptr && current->
nextptr !=
nullptr) {
98 while (headptr1 !=
nullptr) {
99 if (headptr1->
value < 0) {
100 Node * next = headptr1;
111 if (currentptr !=
nullptr) {
112 if (currentptr->
nextptr !=
nullptr) {
118 if (result ==
nullptr) {
127 if (currentptr->
value <= input) {
143 if (headptr1 ==
nullptr) {
146 if (headptr1->
nextptr !=
nullptr) {
158 Node * node1head =
nullptr;
159 Node * node2head =
nullptr;
165 Node * current = node2head;
166 while (current !=
nullptr) {
void linkedlist_int(Node *&headptr1)
void remove_dups_negative_nums(Node *&headptr1)
void print_linked_list(Node *headptr1)
Node * last_node_greater_than(Node *currentptr, int input)
void build_sorted_linkedlist(Node *&headptr1, int input)
void recursive_remove_dups(Node *headptr1)