![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
leetcode
文章平均质量分 67
少林小钢炮
这个作者很懒,什么都没留下…
展开
-
[leetcode] Single Number II
Single Number II Total Accepted: 13814 Total Submissions: 42303My SubmissionsGiven an array of integers, every element appears three times except for one. Find that single one.Note:Y原创 2014-05-04 12:59:02 · 612 阅读 · 0 评论 -
[leetcode] Insertion Sort List
题目:class Solution {public: ListNode *insertionSortList(ListNode *head) { if (head == NULL || head->next == NULL) return head; //设置当前遍历指针 ListNode * current = head->next; head->nex原创 2014-04-22 21:58:42 · 537 阅读 · 0 评论 -
[leetcode] Sort List
题目:Sort List Total Accepted: 9356 Total Submissions: 47695My SubmissionsSort a linked list in O(n log n) time using constant space complexity.Have you been as原创 2014-04-22 20:37:27 · 519 阅读 · 0 评论 -
[leetcode] Max Points on a Line
题目:Max Points on a LineMy SubmissionsGiven n points on a 2D plane, find the maximum number of points that lie on the same straight line.原创 2014-04-22 19:17:33 · 550 阅读 · 0 评论 -
[leetcode] Binary Tree Postorder Traversal
Given a binary tree, return the postorder traversal of its nodes' values.For example:Given binary tree {1,#,2,3}, 1 \ 2 / 3return [3,2,1].Note: Recursive solut原创 2014-04-26 09:46:17 · 443 阅读 · 0 评论 -
[leetcode] Binary Tree Preorder Traversal 非递归先序遍历
Binary Tree Preorder Traversal Total Accepted: 20397 Total Submissions: 58308My SubmissionsGiven a binary tree, return the preorder traversal of its nodes' values.For example:Given b原创 2014-06-09 20:15:16 · 535 阅读 · 0 评论