摘要: 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(... 阅读全文
posted @ 2018-05-14 14:02 Curo 阅读(125) 评论(0) 推荐(0) 编辑
摘要: 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... 阅读全文
posted @ 2018-05-14 13:05 Curo 阅读(183) 评论(0) 推荐(0) 编辑