07 2017 档案
摘要:/** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int x) : val(x), next(NULL) {} * }; */ class Solution { public: ListNode* r...
阅读全文
摘要:class Solution { public: void reverseWords(string &s) { string result; int size = s.length(); int length = 0; for (int i = size - 1; i >= 0; i--) { ...
阅读全文
摘要:class Solution { public: bool searchMatrix(vector>& matrix, int target) { int m = matrix.size(); if (!m) { return false; } int n = matrix.at(0)...
阅读全文

浙公网安备 33010602011771号