摘要: 刚开始并未考虑越界的问题,以及当个位数是0时会造成程序的错误,经过仔细审视,AC代码:int reverse(int x){ int res = 0; int temp = abs(x); int flag = 0; if (x=0 && yu>=0) { ... 阅读全文
posted @ 2015-06-01 16:04 Acode 阅读(163) 评论(0) 推荐(0) 编辑
摘要: string CommonPrefix(string str1,string str2){ int len_1=str1.length(); int len_2=str2.length(); int min_len=len_1>len_2 ? len_2:len_1; str... 阅读全文
posted @ 2015-06-01 11:25 Acode 阅读(137) 评论(0) 推荐(0) 编辑
摘要: ListNode* removeElements(ListNode* head, int val){ if (head == NULL) return head; ListNode *p = head; while (p && p->val==val) ... 阅读全文
posted @ 2015-06-01 10:51 Acode 阅读(121) 评论(0) 推荐(0) 编辑
您是本站第访问量位访问者!