摘要:
/** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int x) : val(x), next(NULL) {} * }; *... 阅读全文
摘要:
class Solution {public: int searchInsert(int A[], int n, int target) { if (A == NULL || n target) { q = mi; } els... 阅读全文