摘要: 主要注意别手误,每个if else情况写全。 1 /** 2 * Definition for singly-linked list. 3 * struct ListNode { 4 * int val; 5 * ListNode *next; 6 * ListNode(int x) : val(x 阅读全文
posted @ 2019-04-13 23:33 jiu~ 阅读(151) 评论(0) 推荐(0) 编辑
摘要: solution1: 1 class Solution { 2 public: 3 struct pair{ 4 std::vector<int>* v; 5 int i; 6 7 bool operator < (const pair &a) const{ 8 return (*v)[i] > ( 阅读全文
posted @ 2019-04-13 23:26 jiu~ 阅读(163) 评论(0) 推荐(0) 编辑