Advertisement
Derga

Untitled

Jul 30th, 2020
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.16 KB | None | 0 0
  1. #include "solution.h"
  2. #include <iostream>
  3.  
  4. void solution(Node* head) {
  5.     while (head != NULL) {
  6.         cout << head->value << endl;
  7.         head = head->next;
  8.     }
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement