|
Algorithms_in_C++ 1.0.0
Set of algorithms implemented in C++.
|
for IO operations More...
Public Member Functions | |
| ListNode ()=default | |
| default constructor | |
| ListNode (int x) | |
| constructor with value for node->val provided | |
| ListNode (int x, ListNode *next) | |
| constructor with values provided for node->val and node->next | |
Public Attributes | |
| int | val {0} |
| the value stored in the node | |
| ListNode * | next {nullptr} |
| pointer to the next node | |
for IO operations
for assert Definition for singly-linked list.