摘要:
class Solution { public: bool Find(int target, vector > array) { int row_size=array.size(); int col_size=array[0].size(); int i=0; int j=col_size-1; while(... 阅读全文
摘要:
class Solution { public: void replaceSpace(char *str, int length) { if (str == NULL || length length) return; int p_old = oldlength;//注意不用减一,\0也要算在里面 int p_new = newlength; while (p_old>=0&&p_ol... 阅读全文