TheAlgorithms/C++ 1.0.0
All the 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.
Definition at line 31 of file median_search2.cpp.
|
inlineexplicit |
constructor with value for node->val provided
Definition at line 35 of file median_search2.cpp.
|
inline |
constructor with values provided for node->val and node->next
Definition at line 37 of file median_search2.cpp.
ListNode* ListNode::next {nullptr} |
int ListNode::val {0} |