第四章 LeetCode 题解 0001~0099 0100~0199 0100. Same Tree 0101. Symmetric Tree 0102. Binary Tree Level Order Traversal 0103. Binary Tree Zigzag Level Order Traversal 0104. Maximum Depth of Binary Tree 0105. Construct Binary Tree From Preorder and Inorder Traversal 0106. Construct Binary Tree...
Leetcode#147 Insertion Sort List 原题地址 心得:有关链表的题目,多用中间变量,代码写得清晰一点,适当注释 代码: 1ListNode *insertionSortList(ListNode *head) {2if(!head)returnNULL;34ListNode *curr = head->next;5ListNode *prev =head;6while(curr) {7ListNode *p =NULL;8ListNode *c =head;9//...