摘要:
587. Erect the Fence 题意:输出把所有点包围起来的轮廓线上的点 我的思路:凸包问题,Graham-Scan算法 我的代码: class Solution { public: static bool cmp(Point& a, Point& b) { if (a.y == b.y) 阅读全文
摘要:
92. Reverse Linked List II 题意:将链表中第m到第n个元素翻转 我的思路:指针数组 我的代码: class Solution { public: ListNode* reverseBetween(ListNode* head, int m, int n) { vector< 阅读全文