摘要: 1 /** 2 * Forward declaration of guess API. 3 * @param num your guess 4 * @return -1 if num is lower than the guess number 5 * 1 if num is higher than 阅读全文
posted @ 2020-04-26 19:26 Jinxiaobo0509 阅读(98) 评论(0) 推荐(0)
摘要: 1 struct cmp 2 { 3 bool operator ()(vector<int> &a, const vector<int> &b) 4 { 5 // < :大顶堆 6 // > :小顶堆 7 return a[0]+a[1] > b[0]+b[1]; 8 } 9 }; 10 prio 阅读全文
posted @ 2020-04-26 19:01 Jinxiaobo0509 阅读(107) 评论(0) 推荐(0)
摘要: 1 class Solution 2 { 3 struct cmp 4 { 5 bool operator ()(vector<int> &a, const vector<int> &b) 6 { 7 // < :大顶堆 8 // > :小顶堆 9 return a[0]+a[1] > b[0]+b 阅读全文
posted @ 2020-04-26 19:00 Jinxiaobo0509 阅读(119) 评论(0) 推荐(0)