You are viewing a single comment's thread. Return to all comments →
C++ (more at https://github.com/IhorVodko/Hackerrank_solutions/tree/master , feel free to give a star :) )
void printLinkedList(SinglyLinkedListNode* head) { while(head){ std::cout << head->data << "\n"; head = head->next; } }
Seems like cookies are disabled on this browser, please enable them to open this website
Print the Elements of a Linked List
You are viewing a single comment's thread. Return to all comments →
C++ (more at https://github.com/IhorVodko/Hackerrank_solutions/tree/master , feel free to give a star :) )