mirror of
https://github.com/krahets/hello-algo.git
synced 2026-07-11 23:16:07 +00:00
Update arrayToTree() and treeToArray() for C.
This commit is contained in:
@@ -26,7 +26,7 @@ ListNode *newListNode(int val) {
|
||||
return node;
|
||||
}
|
||||
|
||||
/* Generate a linked list with a vector */
|
||||
/* Generate a linked list with an array */
|
||||
ListNode *arrToLinkedList(const int *arr, size_t size) {
|
||||
if (size <= 0) {
|
||||
return NULL;
|
||||
|
||||
Reference in New Issue
Block a user