![]() |
sort-list 1.0.0
Sort List
|
#include <iostream>
Go to the source code of this file.
Data Structures | |
| struct | ListNode |
| Definition for singly-linked list. More... | |
| class | Solution |
Functions | |
| void | print_list (ListNode *head) |
| void | delete_list (ListNode *ptr) |
| int | main () |
| void delete_list | ( | ListNode * | ptr | ) |
Definition at line 28 of file main.cpp.
References delete_list(), and ListNode::next.
Referenced by delete_list(), and main().
| int main | ( | ) |
Definition at line 92 of file main.cpp.
References delete_list(), print_list(), and Solution::sortList().
| void print_list | ( | ListNode * | head | ) |
Definition at line 17 of file main.cpp.
References ListNode::next, and ListNode::val.
Referenced by main().