-
Print the Elements of a Linked List코딩 테스트/HackerRank 2021. 9. 13. 23:30
https://www.hackerrank.com/challenges/print-the-elements-of-a-linked-list/problem
Print the Elements of a Linked List | HackerRank
Get started with Linked Lists!
www.hackerrank.com
// ... void printLinkedList(SinglyLinkedListNode* head) { while(head != nullptr) { cout << head->data << endl; head = head->next; } } // ...
'코딩 테스트 > HackerRank' 카테고리의 다른 글
For Loop (0) 2021.09.16 Functions (0) 2021.09.15 Pointer (0) 2021.09.14